{"raw_statement":[{"iden":"problem statement","content":"In the Kingdom of AtCoder, a week consists of $A+B$ days, with the first through $A$\\-th days being holidays and the $(A+1)$\\-th through $(A+B)$\\-th being weekdays.\nTakahashi has $N$ plans, and the $i$\\-th plan is scheduled $D_i$ days later.\nHe has forgotten what day of the week it is today. Determine if it is possible for all of his $N$ plans to be scheduled on holidays."},{"iden":"constraints","content":"*   $1\\leq N\\leq 2\\times 10^5$\n*   $1\\leq A,B\\leq 10^9$\n*   $1\\leq D_1<D_2<\\ldots<D_N\\leq 10^9$"},{"iden":"input","content":"The input is given from Standard Input in the following format:\n\n$N$ $A$ $B$\n$D_1$ $D_2$ $\\ldots$ $D_N$"},{"iden":"sample input 1","content":"3 2 5\n1 2 9"},{"iden":"sample output 1","content":"Yes\n\nIn this input, a week consists of seven days, with the first through second days being holidays and the third through seventh days being weekdays.\nLet us assume today is the seventh day of the week. In this case, one day later would be the first day of the week, two days later would be the second day of the week, and nine days later would also be the second day of the week, making all plans scheduled on holidays. Therefore, it is possible for all of Takahashi's $N$ plans to be scheduled on holidays."},{"iden":"sample input 2","content":"2 5 10\n10 15"},{"iden":"sample output 2","content":"No"},{"iden":"sample input 3","content":"4 347 347\n347 700 705 710"},{"iden":"sample output 3","content":"Yes"}],"translated_statement":null,"sample_group":[],"show_order":["default"],"formal_statement":null,"simple_statement":null,"has_page_source":true}