using System;

namespace AOJ.Volume0
{
    public class Videotape
    {
        public static int Main()
        {
            while (true)
            {
                var input = Console.ReadLine().Split(' ');
                int t = int.Parse(input[0]);
                int h = int.Parse(input[1]);
                int s = int.Parse(input[2]);

                if (t == -1 && h == -1 && s == -1) { break; }

                // ????????????????§???§?¨????
                // 3?????????????¨????
                int rest = 7200 - (t * 60 * 60) - (h * 60) - s;
                int rest_3x = rest * 3;

                // ??????
                // ???
                string output = ((int)Math.Floor((decimal)rest / 3600)).ToString("00") + ":";
                string output_3x = ((int)Math.Floor((decimal)rest_3x / 3600)).ToString("00") + ":";
                rest = rest % 3600;
                rest_3x = rest_3x % 3600;

                // ???
                output += ((int)Math.Floor((decimal)rest / 60)).ToString("00") + ":";
                output_3x += ((int)Math.Floor((decimal)rest_3x / 60)).ToString("00") + ":";
                rest = rest % 60;
                rest_3x = rest % 60;

                // ?§?
                output += rest.ToString("00");
                output_3x += rest_3x.ToString("00");

                Console.WriteLine(output);
                Console.WriteLine(output_3x);
            }
            return 0;
        }
    }
}