require 'date' puts Date.new(*gets.split.map(&:to_i)).between?(Date.new(1989, 1, 8), Date.new(2019, 4, 30))