<!-- wp:paragraph {"align":"center"} -->
<p class="has-text-align-center"><strong>B. Petya and Square</strong></p>
<!-- /wp:paragraph -->

<!-- wp:paragraph {"align":"right"} -->
<p class="has-text-align-right">time limit per test:2 seconds<br>memory limit per test: 256 megabytes<br>input/output standard input /standard output</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Little Petya loves playing with squares. Mum bought him a square&nbsp;2<em>n</em> × 2<em>n</em>&nbsp;in size. Petya marked a cell inside the square and now he is solving the following task.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>The task is to draw a broken line that would go along the grid lines and that would cut the square into two equal parts. The cutting line should not have any common points with the marked cell and the resulting two parts should be equal&nbsp;<strong>up to rotation</strong>.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Petya wants to determine whether it is possible to cut the square in the required manner given the sizes of the square side and the coordinates of the marked cell. Help him.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Input</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>The first line contains three space-separated integers&nbsp;2<em>n</em>,&nbsp;<em>x</em>&nbsp;and&nbsp;<em>y</em>&nbsp;(2 ≤ 2<em>n</em> ≤ 100, 1 ≤ <em>x</em>, <em>y</em> ≤ 2<em>n</em>), representing the length of a square's side and the coordinates of the marked cell. It is guaranteed that&nbsp;2<em>n</em>&nbsp;is even.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>The coordinates of the marked cell are represented by a pair of numbers&nbsp;<em>x</em>&nbsp;<em>y</em>, where&nbsp;<em>x</em>&nbsp;represents the number of the row and&nbsp;<em>y</em>&nbsp;represents the number of the column. The rows and columns are numbered by consecutive integers from&nbsp;1&nbsp;to&nbsp;2<em>n</em>. The rows are numbered from top to bottom and the columns are numbered from the left to the right.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Output</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>If the square is possible to cut, print "YES", otherwise print "NO" (without the quotes).</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Examples</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>input</p>
<!-- /wp:paragraph -->

<!-- wp:code -->
<pre class="wp-block-code"><code>4 1 1</code></pre>
<!-- /wp:code -->

<!-- wp:paragraph -->
<p>output</p>
<!-- /wp:paragraph -->

<!-- wp:code -->
<pre class="wp-block-code"><code>YES</code></pre>
<!-- /wp:code -->

<!-- wp:paragraph -->
<p>input</p>
<!-- /wp:paragraph -->

<!-- wp:code -->
<pre class="wp-block-code"><code>2 2 2</code></pre>
<!-- /wp:code -->

<!-- wp:paragraph -->
<p>output</p>
<!-- /wp:paragraph -->

<!-- wp:code -->
<pre class="wp-block-code"><code>NO</code></pre>
<!-- /wp:code -->

<!-- wp:paragraph -->
<p>Note</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>A sample test from the statement and one of the possible ways of cutting the square are shown in the picture:</p>
<!-- /wp:paragraph -->

<!-- wp:image {"sizeSlug":"large"} -->
<figure class="wp-block-image size-large"><img src="https://espresso.codeforces.com/1f4eaddfc0f65100f6eb9944e60200ca4c61e857.png" alt=""/></figure>
<!-- /wp:image -->

<!-- wp:paragraph -->
<p>Solution Hint : In this program i realize that if the mark is in the center 2*2 of the square than the problem  would not be solved so i hard coded that if the mark is in the square then it is "NO" else it is "YES". This is easier codeforces solution.</p>
<!-- /wp:paragraph -->

<!-- wp:code -->
<pre class="wp-block-code"><code>#include &lt;iostream>
 
using namespace std;
 
int main(){
    int n,i,j;
    cin >> n >> i >> j;
    if((i==n/2 &amp;&amp; (j==i || j==i+1)) || (i==n/2+1 &amp;&amp; (j==i || j==i-1))){
        cout &lt;&lt; "NO";
    }
    else
        cout &lt;&lt; "YES";
      
    return 0;
}</code></pre>
<!-- /wp:code -->