public class Program { public static void Main() { //int num = int.Parse(Console.ReadLine() ?? string.Empty); //string[] str = (Console.ReadLine() ?? string.Empty).Trim().Split(' '); string str = Console.ReadLine() ?? string.Empty; int h = int.Parse(str.Substring(0, 2)); int m = int.Parse(str.Substring(str.Length-2,2)); m += 5; if(m >= 60) { m -= 60; h++; if(h >= 24) { Console.WriteLine("00:0{0}",m); return; } } if(h.ToString().Length == 1) { Console.Write("0{0}:", h); } else { Console.Write("{0}:",h); } if(m.ToString().Length == 1) { Console.WriteLine("0{0}",m); } else { Console.WriteLine("{0}",m); } } }