#include <stdio.h> int main() { int m, n, x; scanf("%d:%d %d", &m, &n, &x); m = (m + (n + x) / 60) % 24; n = (n + x) % 60; printf("%02d:%02d\n", m, n); return 0; }
#include <stdio.h> int main() { int m, n, x; scanf("%d:%d %d", &m, &n, &x); m = (m + (n + x) / 60) % 24; n = (n + x) % 60; printf("%02d:%02d\n", m, n); return 0; }