Busil wants to be friends
InterviewTime limit1sMemory limit1024 MB
Count how many values from A to B differ from K by at most X, and print IMPOSSIBLE if no value qualifies.
Problem

Now that all of Busil's friends have become GOSU, Busil wants to make new friends with skill levels close to his own. Everywhere he looks, there are only GOSU, but Busil has managed to gather a few people at his level. Surprisingly, each of these people solved a different number of problems. When they are arranged in order of how many problems they solved, from fewest to most, the counts are .
Some of them differ from Busil by too many problems. Busil decides that only people whose solved count differs from his by at most qualify as friends. When Busil has solved problems, find the number of people who can become his friends.
Input
The first line contains and , separated by a space.
The second line contains , the number of problems Busil solved, and a positive integer , separated by a space.
Output
Print the number of people who can be Busil's friends.
If no one can be his friend, print IMPOSSIBLE.