Shortest Solution in Python 3 for Caught Speeding - CodingBat
Python 3, 32 bytes



lambda a,b:(a-b*5&gt;60)+(a-b*5&gt;80)


Try it online!



Python 3, 50 bytes

If io must be done with stdin and stdout



s=int(input())-5*int(input());print((s&gt;60)+(s&gt;80))


Try it online!