atcoder#JSC2019QUALA. Takahashi Calendar
Takahashi Calendar
Score : points
Problem Statement
Today is August , one of the five Product Days in a year.
A date - ( is the month, is the date) is called a Product Day when is a two-digit number, and all of the following conditions are satisfied (here is the tens digit of the day and is the ones digit of the day):
Takahashi wants more Product Days, and he made a new calendar called Takahashi Calendar where a year consists of month from Month to Month , and each month consists of days from Day to Day .
In Takahashi Calendar, how many Product Days does a year have?
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
Print the number of Product Days in a year in Takahashi Calender.
15 40
10
There are Product Days in a year, as follows (- denotes Month , Day ):
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
12 31
5
1 1
0