eolymp
bolt
Try our new interface for solving problems
Problems

Mobile tariff "Cents"

Mobile tariff "Cents"

Peter using a mobile data plan "Cents". Each outbound call is charged as follows: \textbf{1} cent per connection plus the first minute of conversation costs \textbf{64} cents, and for each subsequent minute - two times cheaper than the previous one, but not cheaper than \textbf{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 \textbf{N} seconds. \InputFile The file recorded a positive integer \textbf{N} (\textbf{N} = \textbf{1}..\textbf{2}·\textbf{10^9}). \OutputFile Call costs (in cents).
Time limit 1 second
Memory limit 64 MiB
Input example #1
100
Output example #1
97
Author Matviychuk S.V.
Source Stage III All-Ukrainian School Olympiad 2010-2011, Round 1, Zhytomyr