import java.util.*; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); 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); } } }