import sequtils, strformat, strutils let t = readLine stdin var h, m: int (h, m) = t.split(':').map parseInt m.inc h * 60 + 5 h = m div 60 mod 24 m = m mod 60 echo &"{h:02}", ":", &"{m:02}"