#K8246. Marathon Time Notification
Marathon Time Notification
Marathon Time Notification
You are given an integer \( t \) representing the number of hours since the start of a marathon, where \(0 \le t \le 23\). Your task is to print a notification message based on the value of \( t \):
- If \( t = 1 \), output
"When the marathon has been running for 1 hour"
. - For all other values of \( t \), output
"When the marathon has been running for t hours"
(with \( t \) replaced by the actual number).
Make sure to follow the exact format of the message.
inputFormat
The input consists of a single integer \( t \) (\(0 \le t \le 23\)) provided on standard input.
outputFormat
Output a single line to standard output containing the notification message as specified.
## sample0
When the marathon has been running for 0 hours