HH: MM zu Mins in Python

s = input()
s = int(s[:-3]) * 60 + int(s[-2:])
print(s)
Bloody Baboon