package yukicoder; import java.util.Scanner; public class Main { public static void main(String[] args) { @SuppressWarnings("resource") Scanner sc = new Scanner(System.in); String moment = sc.nextLine(); String[] spl = moment.split(":"); int hour = Integer.parseInt(spl[0]); int minu = Integer.parseInt(spl[1]); minu+=5; if(minu >= 60){ minu-=60; hour++; } hour%=24; String[] prefix = {"",""}; if(hour < 10){ prefix[0] = "0"; } if(minu < 10){ prefix[1] = "0"; } System.out.println(prefix[0] + hour + ":" + prefix[1] + minu); } }