def main(): n = int(input()) s = set() while n > 0: s.add(n % 10) n = int(n / 10) if {4, 6} <= s: print("Beautiful") else: print("...") main()