#include <bits/stdc++.h>
int main() {
  int h, m, s, h1, m1, s1, h3, m3, s3, sum1, sum3;
  while (1) {
    scanf("%d%d%d", &h, &m, &s);
    if (h == -1 && m == -1 && s == -1) break;
    sum1 = h * 3600 + m * 60 + s;
    sum3 = sum1 / 3;
    sum1 = 7200 - sum1;
    sum3 = 7200 - sum3;
    h1 = sum1 / 3600;
    sum1 = sum1 - h1 * 3600;
    m1 = sum1 / 60;
    s1 = sum1 - m1 * 60;
    h3 = sum3 / 3600;
    sum3 = sum3 - h3 * 3600;
    m3 = sum3 / 60;
    s3 = sum3 - m3 * 60;
    printf("%02d:%02d:%02d\n%02d:%02d:%02d\n", h1, m1, s1, h3, m3, s3);
  }
  return 0;
}
