def sec_to_time(sec):
  h = sec // 3600
  m = sec // 60 - h * 60
  s = sec % 60
  print(str(h).zfill(2) + ":" + str(m).zfill(2) + ":" + str(s).zfill(2))

def solve(h, m, s):
  sec = 7200 - (3600 * h + 60 * m + s)
  sec_to_time(sec)
  sec_to_time(sec * 3)

while True:
  h, m, s = map(int, input().split())
  if h == -1:
    break
  solve(h, m, s)
