#include #include #include #include using namespace std; #define FOR(i,a,b) for(int i=(a);i<(b);++i) #define REP(i,n) FOR(i,0,n) typedef long long ll; int main() { char a[5]; REP(i, 5) { cin >> a[i]; } int ten, one; ten = ((int)a[0] - (int)'0') * 10 + (int)a[1] - (int)'0'; one = ((int)a[3] - (int)'0') * 10 + (int)a[4] - (int)'0'; one += 5; if (one >= 60) { ten += 1; one -= 60; } if (ten >= 24) { ten -= 24; } if (!(ten / 10)) { cout << "0"; } cout << ten<<":"; if (!(one / 10)) { cout << "0"; } cout << one; cout << endl; return 0; }