Write a program called playwaltz.py that accepts from standard input, a sequence of 32 integers representing the 32 measures of a waltz, and plays the waltz to standard audio. Before playing any audio, your program must check if the inputs are correct, and if they are not, must call sys.exit(message) to exit the program with an appropriate error message. The following errors must be handled:

• If the number of measures is not 32, exit with the message "A waltz must contain exactly 32 measures".
• If a minuet measure is not from [1,176], exit with the message "A minuet measure must be from 1, 176)".
• If a trio measure is not from (1,96), exit with the message "A trio measure must be from (1, 96)"