def func(text):
    value = text[0] + "*" + text[-1]
    return value

print(func("find"))     
print(func("bottle"))   