import std.algorithm; import std.array; import std.conv; import std.math; import std.range; import std.stdio; import std.string; import std.typecons; int readint() { return readln.chomp.to!int; } int[] readints() { return readln.split.map!(to!int).array; } void main() { auto xs = readln.chomp.split(':').map!(to!int).array; int x = xs[0] * 60 + xs[1]; x = (x + 5) % (24 * 60); writefln("%02d:%02d", x / 60, x % 60); }