import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int A = sc.nextInt();
int B = sc.nextInt();
int C = sc.nextInt();
int D = sc.nextInt();
System.out.println((A+(B+(C+D)/60)/60)%24+" "+(B+(C+D)/60)%60+" "+(C+D)%60);
}
}
'백준알고리즘 > Bronze IV' 카테고리의 다른 글
2480번: 주사위 세개 (0) | 2022.06.30 |
---|---|
2440번: 별 찍기 -3 (0) | 2022.06.30 |
2439번: 별 찍기 -2 (0) | 2022.06.28 |
1264번: 모음의 개수 (0) | 2022.06.28 |