using static System.Console; class Program { static void Main() { var a = int.Parse(ReadLine()); WriteLine($"{10 + a / 100}:{60 * a / 100 % 60:00}"); } }