n = input() v = 0 w = 0 for i in n: if i == "4": v = 1 if i == "6": w = 1 if v and w: print("Beautiful") else: print("...")