require "time" puts Time.instance_method(:between?).bind_call(*[gets.split(' ').join('-'), '1989-01-08', '2019-04-30'].map { Time.parse _1 }) ? 'Yes' : 'No'