How time flies issue


#1

Your program must print formatted string with the number of full years and full months (if there are any greater than 0) and the total number of days between BEGIN and END dates in dd.mm.yyyy format.

Example 1:

Input:
01.01.2000
01.01.2016

Output:
16 years, total 5844 days

Example 2:

Input:
15.12.2014
14.02.2016

Output:
1 year, 1 month, total 426 days

Example 3:

Input:
01.01.2016
18.08.2016

Output:
7 months, total 230 days

Input

Line 1: A date BEGIN in dd.mm.yyyy format.
Line 2: A date END in dd.mm.yyyy format.

Output

Line 1 : Formatted string presenting date difference as “YY day[s], MM month[s], total NN days”

Constraints

BEGIN ≤ END

Example

Input

01.01.2000 01.01.2016

Output

16 years, total 5844 days

WHICH IS THE SOLUTIOOOOON PLEAAAAASE! I´m a begginer programmer


#2

if we tell you the solution, then you’ll remain a beginner forever.

You need to learn how to ask for help and explain what issue do you encounter while solving this puzzle.

EDIT: link to puzzle: https://www.codingame.com/training/easy/how-time-flies


#3

The standard approach to problems s like this is:
Solve it with pen&paper.

What is the input, what is the solution, what kind of steps would you have to perform to arrive from input to solution, and finally, how would you implement it.
The penultimate part being the important one.
Which can be only unsuccessful, if you meticulously documented the parts before.

That is, how you learn how to think like a programmer. :wink:

HTH and have fun here!