#include <iostream> using namespace std; int main() { int hour, min, n; scanf("%d:%d %d", &hour, &min, &n); hour = ((min + n) / 60 + hour) % 24; min = (min + n) % 60; printf("%02d:%02d", hour, min); } // 64 位输出请用 printf("%lld")