#include using namespace std; int main(){ int hh; char c; int mm; cin >> hh >> c >> mm; mm += 5; if (mm >= 60){ mm -= 60; hh++; } if (hh >= 24){ hh -= 24; } cout << hh << c << mm << endl; }