#include using namespace std; int main() { int h, m; char d; cin >> h >> d >> m; if (m + 5 > 59) { m = m + 5 - 60; h++; h %= 24; } else { m += 5; } cout << setw(2) << setfill('0') << h << ":" << setw(2) << setfill('0') << m << endl; return 0; }