while True:
  T,H,S=map(int,input().split())
  if T==H==S==-1:
    break
  x=120*60-(T*3600+H*60+S)
  print("{:02d}:{:02d}:{:02d}".format(x//3600,(x%3600)//60,x%60))
  x*=3
  print("{:02d}:{:02d}:{:02d}".format(x//3600,(x%3600)//60,x%60))
