Clock angles

It is noon and Jordi notices that the hour and minute hands are overlapping. Jordi has to leave in mm minutes. What angle will the two hands form when he leaves?

Input

The input consists of a single integer mm, with 0m100800 \leq m \leq 10080. It is guaranteed that mm is a multiple of 30.

Output

Write an integer, the angle formed by the two hands in degrees.

Problem information

Author: Unknown
Translator: Alex Alvarez

Generation: 2026-01-25T17:04:45.867Z

© Jutge.org, 2006–2026.
https://jutge.org