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