#include using namespace std; const long long INF = 1LL << 60; #define MOD 1000000007; typedef long long ll; #define writeln(n) cout< P; typedef pair Psi; int main() { string s; cin>>s; int h,m; sscanf(s.c_str(),"%d:%d",&h,&m); m +=5; if(m >=60){ m = m%60; h+=1; } if(h >=24){ h=0; } printf("%02d:%02d",h,m); }