#P10983. Total Running Distance in 2023

    ID: 13031 Type: Default 1000ms 256MiB

Total Running Distance in 2023

Total Running Distance in 2023

In this problem, Little Blue has a running plan for the year 2023. On any day, if the date (including month, day, and weekday) contains the digit 11 (in its usual decimal representation), Little Blue runs 55 km; otherwise, she runs 11 km. Note that the year is not considered because 20232023 does not contain the digit 11. For weekdays, use the convention that Monday is represented as 11, Tuesday as 22, …, and Sunday as 77, and check if the digit 11 appears in that number (i.e. if it is Monday).

For example, on May 1st, January 13th, November 5th, and April 3rd (which is a Monday) she will run 55 km, while on May 23rd she will run 11 km. Calculate the total distance Little Blue runs in the year 2023 under this plan.

The answer should be output as an integer representing the total kilometers run in 2023. All formulas in this description use ( \LaTeX ) formatting (e.g. 55, 11, etc.).

inputFormat

There is no input for this problem.

outputFormat

Output a single integer representing the total kilometers run by Little Blue in the year 2023.

sample

1337