a = io.read("*n") / 100 b = math.floor(a) b, c = b + 10, (a - b) * 60 io.write(string.format("%02d:%02d\n", b, c))