from datetime import datetime, timedelta def main(): T = datetime.strptime(input(), "%H:%M") print((T+timedelta(minutes=5)).strftime("%H:%M")) if __name__ == "__main__": main()