Under construction

Still being built. Things may change

Minutes

Time limit2sMemory limit1024 MB

Summary
Given hours H and minutes M, the task is to print the total number of minutes, H * 60 + M.
Level

Easy1 of 10

Topics
Math, Implementation
Solved
No attempts yet

Problem

Integers H and M are given.

Find how many minutes are in H hours and M minutes.

Input

The input is given in the following format.

H
M

Output

Print the number of minutes in H hours and M minutes, without the unit. Print nothing other than the answer.

Constraints

  • 0 ≦ H ≦ 23.
  • 0 ≦ M ≦ 59.
  • All input values are integers.

Examples4

  1. Example 1

    Input
    8
    30
    
    Expected output
    510
    
  2. Example 2

    Input
    14
    0
    
    Expected output
    840
    
  3. Example 3

    Input
    0
    29
    
    Expected output
    29
    
  4. Example 4

    Input
    23
    59
    
    Expected output
    1439