z=[0, 0, 0]
if r[0] > s[0]:
z[0]=60-s[0]
elif r[0] < s[0]:
z[0]=60-r[0]
else:
z[0]=60-s[0]
if r[1] > s[1]:
z[1]=60-s[1]
elif r[1] < s[1]:
z[1]=60-r[1]
else:
z[1]=60-s[1]
if r[2] > s[2]:
z[2]=60-s[2]
elif r[2] < s[2]:
z[2]=60-r[2]
else:
z[2]=60-s[2]