N = input() c4 = False c6 = False for n in N: if n == '4': c4 = True if n == '6': c6 = True if c4 and c6: print("Beautiful") else: print("...")