#K57457. Count the Alarm Minutes

    ID: 30424 Type: Default 1000ms 256MiB

Count the Alarm Minutes

Count the Alarm Minutes

In this problem, you are given a two-digit string representing an hour (in the range 00 to 23). Although the hour is provided as input, the alarm clock is designed to sound exactly when the minutes display has two identical consecutive digits. Since the minute display is always in two-digit format for values between 00 and 59, there are exactly 6 minutes (namely, 00, 11, 22, 33, 44, and 55) during any hour when the alarm will sound. Your task is to output the number of minutes for which the alarm sounds in the given hour.

The formula for the count is given by: [ \text{Count} = #{ m \in [0,59] \mid m = dd \text{ (in two-digit format)} } = 6 ]

inputFormat

The input consists of a single line containing a two-digit string representing the hour (from "00" to "23").

outputFormat

Output a single integer — the number of minutes in the given hour during which the alarm will sound.## sample

00
6