#include #define rep(i, a, n) for(int i = a; i < n; i++) #define repb(i, a, b) for(int i = a; i >= b; i--) #define all(a) a.begin(), a.end() #define o(a) cout << a << endl #define int long long #define fi first #define se second using namespace std; typedef pair P; int change_to_i(string s){ stringstream ss; int k; ss<>k; return k; } signed main(){ int h, m; string s; cin >> s; h = change_to_i(s.substr(0, 2)); m = change_to_i(s.substr(3, 5)); m += 5; if(m >= 60){ h++; m -= 60; } if(h >= 24){ h -= 24; } printf("%02lld:%02lld\n", h, m); }