l=list(input()) if "4" in l and "6" in l: print("beautiful") else: print("...")