a=gets.to_f b=gets.to_f c=b/a if (1600-c).abs<(40-c).abs then puts 2 else puts 1 end