n=int(input()) flag1=0 flag2=0 while(n>0): if n%10==4: flag1=1 if n%10==6: flag2=1 n//=10 if flag1 and flag2: print("Beautiful") else: print("...")