#include using namespace std; int main() { int h, m; scanf("%d:%d", &h, &m); m+=5; h+=m/60; printf("%02d:%02d\n", h%24, m%60); }