#include using namespace std; int main() { string time; cin >> time; string h(time.begin(), time.begin()+2); string m(time.begin()+3, time.begin()+5); int hh = stoi(h); int mm = stoi(m); mm += 5; if(mm > 60) { hh++; mm -= 60; if(hh == 24) hh = 0; } string h_out = to_string(hh); string m_out = to_string(mm); if(h_out.size() == 1) h_out = '0' + h_out; if(m_out.size() == 1) m_out = '0' + m_out; cout << h_out << ':' << m_out << '\n'; return 0; }