Mobile tariff "Cents"
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 64 megabytes
Peter using a mobile data plan "Cents". Each outbound call is charged as follows: 1 cent per connection plus the first minute of conversation costs 64 cents, and for each subsequent minute - two times cheaper than the previous one, but not cheaper than 1 cent. Minute tariffication, that is, even if Peter did not use all the time last minute, it is paid in full. I find the price in cents phone call duration N seconds.
Input
The file recorded a positive integer N (N = 1..2·10^9).
Output
Call costs (in cents).
Examples
Input #1
Answer #1
Submissions 3K
Acceptance rate 33%