import time
import winsound
import msvcrt
min = int(input('minutes >> '))
min = min * 60
sec = int(input('seconds >> '))
sec = sec + min
while min >= 0 and sec != 0:
time.sleep(1)
sec = sec - 1
print('{}'.format(sec))
if msvcrt.kbhit():
break
if sec == 0:
winsound.Beep(455, 233)
import time
import winsound
import msvcrt
min = int(input('minutes >> '))
min = min * 60
sec = int(input('seconds >> '))
sec = sec + min
while min >= 0 and sec != 0:
time.sleep(1)
sec = sec - 1
print('{}'.format(sec))
if msvcrt.kbhit():
break
if sec == 0:
winsound.Beep(455, 233)