import java.util.*; import java.util.stream.Stream; import java.time.*; import java.time.format.*; public class No651 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int h = 10 + (a / 100); int m = (a / 10) % 10 * 6 ; System.out.println(h + ":" + (m > 10 ? m : "0"+m)); } }