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