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