# Read the input time t = input().strip() # Split into hours and minutes h_str, m_str = t.split(':') h = int(h_str) m = int(m_str) # Calculate total minutes after adding 5 minutes total_minutes = h * 60 + m + 5 # Compute new hours and minutes new_h = (total_minutes // 60) % 24 new_m = total_minutes % 60 # Format the result with leading zeros print("{:02d}:{:02d}".format(new_h, new_m))