speed = int(input('Enter vehicle speed: ')) if speed > 50: if speed > 55: if speed > 60: print('Fine is $1000') else: print('Fine is $200') else: print('Just a caution') else: print('No fine')