fn main() { let mut t = String::new(); std::io::stdin().read_line(&mut t).ok(); let t = t.trim().split(":").map(|s| s.parse::().unwrap()).collect::>(); let hour = t[0] + if t[1] + 5 >= 60 { 1 } else { 0 }; let hour = hour % 24; let minutes = (t[1] + 5) % 60; println!("{:02}:{:02}", hour, minutes); }