# frozen_string_literal: true N = gets.to_i A = N.times.map { gets.chomp.split.map(&:to_i) } RESULT = A.map do |a, b| if (a - b).negative? 60 elsif a == b 61 else 62 end.chr end puts RESULT