Edward bought N_00 tickets at the state fair . He spent N_01 tickets at the ' dunk a clown ' booth and decided to use the rest on rides . If each ride cost N_02 tickets , how many rides could he go on ?