#include using namespace std; #define vi vector #define vvi vector #define vs vector #define pb push_back #define P pair #define vp vector

#define PP pair #define vpp vector #define fi first #define se second #define INF 1e9 #define MOD 1000000007 #define REP(i,n) for(int i=0;i=0;i--) #define FOR(i,m,n) for(int i=m;i>a>>b; string st; cin>>st; a-=9; double t=stod(st.substr(3,st.size()-3)); a+=(int)t; b+=mi(t); printf("%02d:%02d\n",(a+24)%24,b); return 0; }