require 'date'puts Date.new(1582, 10, 4).to_sputs Date.new(1582, 10, 5).to_sputs Date.new(1582, 10, 4).succ.to_s