n = $stdin.gets.chomp.to_i n.times do arr = gets.chomp.split(' ').map(&:to_i) if arr[0].uniq!.length == 1 puts "=" elsif arr[0] == arr.sort.first putc 60 else putc 62 end end