P26845 [AtCoder] Next Christmas
普及
题目描述

Problem Description

Today is December 25, 2018. It is Christmas Day.
Write a program that calculates how many years after Christmas it will be on a given date $ Y $ $ M $ $ D $.
If the date is not Christmas Day, output NOT CHRISTMAS DAY.

Input Format

The input is given from the standard input in the following format:

$ Y $ $ M $ $ D $

Output Format

Output one line indicating how many years after Christmas it will be on the date $ Y $ $ M $ $ D $.
If the date is not Christmas Day, output NOT CHRISTMAS DAY.

Sample Input and Output

Sample Input #1

2018 12 25

Sample Output #1

0

Sample Input #2

2018 12 24

Sample Output #2

NOT CHRISTMAS DAY

Sample Input #3

2234 12 25

Sample Output #3

216

Notes/Hints

Constraints

  • $ Y $ is an integer between 2018 and 2299 inclusive.
  • $ M $ is an integer between 1 and 12 inclusive.
  • $ D $ is an integer between 1 and 31 inclusive.
  • The date $ Y $ $ M $ $ D $ exists in the Gregorian calendar.

Sample Explanation 1

December 25, 2018, is this year's Christmas, so it is 0 years after.

Sample Explanation 2

December 24, 2018, is Christmas Eve, but not Christmas Day.

Sample Explanation 3

December 25, 2234, is 216 years after Christmas, but will Christmas even last that long?

输入格式

见题面 Input 部分

输出格式

见题面 Output 部分

样例输入
2018 12 25
样例输出
0