#include <bits/stdc++.h>
int D = 1;
int dx[4] = {0, 1, 0, -1}, dy[4] = {1, 0, -1, 0};
using namespace std;
int main() {
  int limit = 120 * 60;
  int t, h, s;
  while (cin >> t >> h >> s && t != -1) {
    int tim = t * 3600 + h * 60 + s;
    int diff1 = limit - tim;
    printf("%02d:%02d:%02d\n", diff1 / 3600, (diff1 % 3600) / 60, diff1 % 60);
    int diff2 = limit - ceil(tim / 3);
    printf("%02d:%02d:%02d\n", diff2 / 3600, (diff2 % 3600) / 60, diff2 % 60);
  }
  return 0;
}
