#include using namespace std; int main(void) { //cin.tie(0); //ios::sync_with_stdio(false); string s; cin >> s; long long int H = stoi(s.substr(0,2)); long long int M = stoi(s.substr(3)); long long int T = H*60 + M; T += 5; H = T/60; M = T%60; if(H>=24) H-=24; printf("%02lld:%02lld\n",H,M); return 0; }