#include #include void solve() { int h, m; char tmp; std::cin >> h >> tmp >> m; int t = (h * 60 + m + 5) % (24 * 60); std::cout << std::setw(2) << std::setfill('0') << t / 60 << ":" << std::setw(2) << std::setfill('0') << t % 60 << std::endl; } int main() { std::cin.tie(nullptr); std::ios::sync_with_stdio(false); solve(); return 0; }