Add one day X54560


Statement
 

pdf   zip

thehtml

Write a program that reads a sequence of dates, and adds one day to each of them.

Input

The input is a sequence of dates. Each date is formed by three integers: day, month, and year. None of the given dates will belong to a leap year.

Output

For each date in the input, the date of the next day is printed. Follow the format of the examples.

Public test cases
  • Input

    23 04 2002
    31 05 1999
    28 02 2017
    01 12 1878
    31 12 2006
    

    Output

    24 04 2002
    01 06 1999
    01 03 2017
    02 12 1878
    01 01 2007
    
  • Information
    Author
    Lluís Padró
    Language
    English
    Official solutions
    Python
    User solutions
    Python