n = input() f,s = False, False for i in n: if i=='4': f = True if i=='6': s = True if f and s: print('Beautiful') else: print('...')