Problem Description

Time string is provided in HH:MM. Output minutes since 00:00. If format is wrong or values are out of range, output INVALID.

Input Format

One string like HH:MM.

Output Format

One integer minutes or INVALID.

Sample Test Case

Input:
09:30
Output:
570

Constraints

0

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next