use std::io::{stdin, Read}; fn main() { let mut buf = String::new(); stdin().read_to_string(&mut buf).unwrap(); let mut buf = buf.split_whitespace(); let mut get = || buf.next().unwrap().parse::().unwrap(); let mut a = get() * 60; let mut m = 0; let mut h = 10; loop { if a <= 0 { println!("{}:{}", h, m); break; } a -= 100; m += 1; if m >= 60 { m = 0; h += 1; } } }