Lillian and James write numbers 1 through 500 on a blackboard. Lillian erases 5, and then James erases 22. Then they start erasing every integer that is either 5 or 22 greater than an erased integer. At the end of the process, what is the largest integer remaining on the blackboard?