hour = int(input())
minute = int(input())
waiting = int(input())
time_mitutes=hour*60+minute+waiting
h,m=divmod(time_mitutes%1440, 60)
print(f'{h:02d}:{m:02d}')
src = cv2.imread('/content/zhencshiny_37098706_orig_.jpeg')
b,g,r=cv2.split(src)
cv2.imwrite('/content/zhencshiny_37098706_orig_red.jpeg',r)
cv2.imwrite('/content/zhencshiny_37098706_orig_green.jpeg',g)
cv2.imwrite('/content/zhencshiny_37098706_orig_blue.jpeg',b)
if sum((int(conversation_id), -event.object['message']['peer_id'], 2e9)):
continue
sort first.txt -o first_sorted.txt
sort second.txt -o second_sorted.txt
comm -12 first_sorted.txt second_sorted.txt > result.txt