import scala.io.StdIn.readLine

object Main {
  def main(args:Array[String]) = {
    var s = ""
    while( {s = readLine;s} != "-1 -1 -1") {
      val n = s.split(" ").map(_.toInt)
      val sec = n(0)*3600 + n(1)*60 + n(2)
      val sd = 120*60 - sec
      val sd3 = sd*3
      printf("%02d:%02d:%02d\n", sd/3600, (sd/60) % 60, sd % 60)
      printf("%02d:%02d:%02d\n", sd3/3600, (sd3/60) % 60, sd3 % 60)
    }
  }
}