#CCC25J1. Roller Coaster Ride
Roller Coaster Ride
Problem Description
You are spending the day at the CEMC’s funfair. One of the rides at the funfair is a roller coaster which has one train with a number of cars. Each car holds the same number of people.
When you arrive at the roller coaster, you see that there is a line. Your job is to determine whether or not you will be on the next train ride, assuming that every car is fully occupied for every ride.
Input Specification
- The first line contains a positive integer
N
, representing your place in line. - The second line contains a positive integer
C
, representing the number of cars the train has. - The third line contains a positive integer
P
, representing the number of people each car can hold.
Output Specification
Output either yes
or no
, indicating whether or not you will be on the next train ride.
Sample Input 1
14
3
2
Sample Output 1
no
Sample Input 2
12
4
3
Sample Output 2
yes