require "date" # puts (Date.new(1989, 1, 8)..Date.new(2019, 4, 30)).cover?(Date.new(*gets.split.map(&:to_i))) ? "Yes" : "No" require "time" puts Time.instance_method(:between?).bind_call(*[gets.split(' ').join('-'), '1988-01-08', '2019-04-30'].map { Time.parse _1 }) ? 'Yes' : 'No'