#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long LL; typedef unsigned long long ULL; #define MEM(a,b) memset((a),(b),sizeof(a)) const LL INF = 1e9 + 7; const int N = 2e5 + 10; int main() { //freopen("input.txt", "r", stdin); //freopen("output.txt", "w", stdout); int a, b; scanf("%d:%d", &a, &b); b += 5; if (b > 59) { a++; b -= 60; } if (a == 24) a = 0; printf("%02d:%02d\n", a, b); return 0; }