s = str(input()) judge_one = [True for i in s if i=="4"] judge_two = [True for i in s if i=="6"] if len(judge_one)>0 and len(judge_two)>0: print("Beautiful") else: print("...")