Age


Submit solution


Points:100 (partial)
Time limit:0.3s
Memory limit:60M
Author:

Tags
Strings
Difficulty
Preparation

Allowed languages
C#, C++, C++ 14, cpp, java, JavaScript, kt, php, Python, Swift

Write a program that reads your birthday(in the format MM.DD.YYYY) from the console and prints on the console how old you are you now and how old will you be after 10 years.

Input

  • The input will always consist of a single line - a birth date.

Output

  • You should print two lines with one number on the each line:
    1. How old are you now, on the first line.
    2. How old will you be after 10 years, on the second line.

Constraints

  • The date read from the console will always be in a valid DateTime format.
  • All dates will be earlier than 2017.

Sample Tests

Input Output
09.05.2016 0
10
09.16.1994 22
32

Comments

There are no comments at the moment.