puts "BA"[0xa000000000000000000aaaa02[gets.to_i]]