s=input() n=len(s) flag1,flag2=False,False for i in s: if i=="4":flag1=True if i=="6":flag2=True print("Beautiful" if flag1 and flag2 else "...")