#include #include #include #include #include #include #include #include #include #include using namespace std; #define INIT cin.tie(0); ios::sync_with_stdio(false); #define FOR(i, a, n) for (int i = a; i < n; i++) #define REP(i, n) for(int i = 0; i < n; i++) int main() { INIT; int h, m; char c; cin >> h >> c >> m; m += 5; if(m >= 60){ h++; m -= 60; } if(h == 24) h = 0; if(h < 10 and m < 10) cout << '0' << h << ':' << '0' << m << endl; else if(h < 10 and m >= 10) cout << '0' << h << ':' << m << endl; else if(h >= 10 and m < 10) cout << h << ':' << '0' << m << endl; else cout << h << ':' << m << endl; return 0; }