import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int a = scan.nextInt(); scan.close(); int h = a / 100; int m = a % 100 * 6 / 10; if(m < 10) { System.out.println(h + 10 + ":0" + m); }else { System.out.println(h + 10 + ":" + m); } } }