import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); System.out.println(solve(n)); } static String solve(int n) { int hour = 10 + n / 100; int min = n % 100 /10 * 6; return hour +":" + String.format("%02d",min); } }