from datetime import datetime as dt import datetime T=input() tdatetime = dt.strptime(T, '%H:%M') # 5日を加算 ans = tdatetime + datetime.timedelta(minutes=5) print(ans.strftime('%H:%M'))