class Calc0138 def initialize(args) args = args.map { |l| l.chomp.split(/\s+/) } @v1 = args.shift.first @v2 = args.shift.first end def calc (@v1.split('.').map(&:to_i) <=> @v2.split('.').map(&:to_i)) >= 0 end def run calc ? 'YES' : 'NO' end end puts Calc0138.new(STDIN.readlines).run if __FILE__ == $0