N = gets.chomp if N =~ /^.*4.*6.*$/ puts 'Beautiful' elsif N =~ /^.*6.*4.*$/ puts 'Beautiful' else puts '...' end