using System;
using System.Text;
using System.Collections.Generic;

namespace AOJ2
{
    class Program
    {
        static void Main(string[] args)
        {
            List<string> resultList = new List<string>();

            string input;
            while (true)
            {
                input = Console.ReadLine();

                if (input == "-1 -1 -1")
                {
                    break;
                }

                string[] inputArray = input.Split(' ');
                int hour = int.Parse(inputArray[0]);
                int minute = int.Parse(inputArray[1]);
                int second = int.Parse(inputArray[2]);

                int rs, rm, rh;
                rs = (60 - second) % 60;
                rm = (60 - minute) % 60;
                rh = 2 - hour;
                if (rs != 0)
                {
                    rm--;
                    rh--;
                }
                else if (rm != 0)
                {
                    rh--;
                }
    
                resultList.Add(string.Format("{0:d2}:{1:d2}:{2:d2}",rh,rm,rs));

                int threeS, threeM, threeH;
                threeS = 3 * rs % 60;
                threeM = (3 * rm % 60 + 3 * rs / 60) % 60;
                threeH = 3 * rh + (3 * rm + 3 * rs / 60) / 60;

                resultList.Add(string.Format("{0:d2}:{1:d2}:{2:d2}", threeH, threeM, threeS));

            }

            foreach (string s in resultList)
            {
                Console.WriteLine(s);
            }



        }


    }
}