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