#include #include using namespace std; int main() { int h,m; scanf("%d:%d",&h,&m); m += 5; if(m > 59){ h++; m %= 60; } if(h > 23) h = 0; if(h < 10) cout << '0'; cout << h << ':'; if(m < 10) cout << '0'; cout << m << endl; return 0; }