import std.stdio;
import std.conv;
import std.string;
import std.typecons;
import std.algorithm;
import std.array;
import std.range;
import std.math;
import std.regex : regex;
import std.container;

void main()
{
	foreach (line; stdin.byLine) {
		auto x = line.split.map!(to!int).array;
		if (x[0] == -1) break;

		auto a = [2, 0, 0];

		a[] -= x[];
		foreach_reverse(i; iota(1, 3)) {
			if (a[i] < 0) {
				a[i-1]--;
				a[i] += 60;
			}
		}
		writefln("%02d:%02d:%02d", a[0], a[1], a[2]);
		a[] *= 3;
		foreach_reverse(i; iota(1, 3)) {
			if (a[i] > 60) {
				a[i-1] += a[i] / 60;
				a[i] %= 60;
			}
		}
		writefln("%02d:%02d:%02d", a[0], a[1], a[2]);
	}
}