import java.text.SimpleDateFormat; import java.util.*; class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { Calendar cl = Calendar.getInstance(); cl.set(Calendar.HOUR_OF_DAY, 10); cl.set(Calendar.MINUTE, 0); cl.add(Calendar.MINUTE, sc.nextInt()*60/100); SimpleDateFormat sdf = new SimpleDateFormat("HH:mm"); System.out.println(sdf.format(cl.getTime())); } }