Loading repovive.com/contests/7/problems/B
You are given a staircase with stairs numbered from to .
Initially, you are standing on stair , and you want to reach stair .
Some stairs are blocked. The blocked stairs are . You can make jumps of length or . After each jump, you must not land on a blocked stair.
Determine whether it is possible to reach stair .
Print Yes if it is possible to reach stair , and No otherwise.
One valid route is .
Stairs and are both blocked. After reaching stair , both possible next landings are blocked.