해설 값을 받은뒤 뒤집은 값끼리 비교하여 가장 큰 수를 출력하면됩니다.
a, b = gets.chomp.split(" ") puts [a.reverse!.to_i, b.reverse!.to_i].max