using System;
using System.Linq;

//namespace _0074

    class Program
    {
        static void Main(string[] args)
        {
            while (true)
            {
                int[] a = Console.ReadLine().Split().Select(int.Parse).ToArray();
                if (a[1] == a[0] && a[2] == a[1] && a[1] == 0) { break; }
                int seconds = 120 * 60, trueeconds = 120 * 60;
                seconds -= a[0] * 3600 + a[1] * 60 + a[2];
                trueeconds -= (a[0] * 3600 + a[1] * 60 + a[2]) / 3;
                float h = seconds / 3600;
                float h1 = trueeconds / 3600;
                float m = (seconds - (int)(seconds / 3600) * 3600) / 60;
                float m1 = (trueeconds - (int)(trueeconds / 3600) * 3600) / 60;
                float s = seconds % 60;
                float s1 = trueeconds % 60;
                if (h < 10) { Console.Write("0" + h); }
                else { Console.Write(h); }
                Console.Write(":");
                if (m < 10) { Console.Write("0" + m); }
                else { Console.Write(m); }
                Console.Write(":");
                if (s < 10) { Console.WriteLine("0" + s); }
                else { Console.WriteLine(s); }
                if (h1 < 10) { Console.Write("0" + h1); }
                else { Console.Write(h1); }
                Console.Write(":");
                if (m1 < 10) { Console.Write("0" + m1); }
                else { Console.Write(m1); }
                Console.Write(":");
                if (s1 < 10) { Console.WriteLine("0" + s1); }
                else { Console.WriteLine(s1); }
            }

        }
    }