defmodule Main do def main do IO.read(:line) |> String.trim |> String.split(":") |> Enum.map(&String.to_integer/1) |> solve |> IO.puts() end def solve([a, b]) do m = a * 60 + b + 5 n = m |> div(60) [ cond do n == 24 -> 0 true -> n end, m |> rem(60) ] |> Enum.map(fn x -> x |> to_string |> (&String.pad_leading(&1, 2, "0")).() end) |> Enum.join(":") end end