Time Conversion Hackerrank Solution In Python Input