Petya and Vasya decided to play a little. They found n red cubes and m blue cubes. The game goes like that: the players take turns to choose a cube of some color (red or blue) and put it in a line from left to right (overall the line will have n + m cubes). Petya moves first. Petya's task is to get as many pairs of neighbouring cubes of the same color as possible. Vasya's task is to get as many pairs of neighbouring cubes of different colors as possible. The number of Petya's points in the game is the number of pairs of neighboring cubes of the same color in the line, the number of Vasya's points in the game is the number of neighbouring cubes of the different color in the line. Your task is to calculate the score at the end of the game (Petya's and Vasya's points, correspondingly), if both boys are playing optimally well. To "play optimally well" first of all means to maximize the number of one's points, and second — to minimize the number of the opponent's points.

The only line contains two space-separated integers n and m (1 ≤ n, m ≤ 105) — the number of red and blue cubes, correspondingly.

On a single line print two space-separated integers — the number of Petya's and Vasya's points correspondingly provided that both players play optimally well.

NoteIn the first test sample the optimal strategy for Petya is to put the blue cube in the line. After that there will be only red cubes left, so by the end of the game the line of cubes from left to right will look as [blue, red, red, red]. So, Petya gets 2 points and Vasya gets 1 point. If Petya would choose the red cube during his first move, then, provided that both boys play optimally well, Petya would get 1 point and Vasya would get 2 points.

#include <stdio.h>
#include <stdlib.h>

int main()
{
    int n,m;
    scanf("%d%d",&n,&m);
    if(n>m)
    {
        printf("%d %d",n-1,m);
    }
    else
    {
        printf("%d %d",m-1,n);
    }
    return 0;
}

#include <stdio.h>

int main(){

	int n, m;
	scanf("%d %d", &n, &m);

	if(n < m){
		int tmp;
		tmp = n, n = m, m = tmp;
	}

	printf("%d %d\n", --n, m);

	return 0;
}

#include<stdio.h>
main(){
	long int n,m;
	scanf("%ld%ld",&n,&m);//n-->red m-->blue cubes
	if(n>m){
		printf("%ld %ld",n-1,m);
	}else{
		printf("%ld %ld",m-1,n);
	}
}

#include<stdio.h>

int main()
{
	int n, m;
	scanf("%d %d", &n, &m);
	if(n > m)
		printf("%d %d\n", n - 1, m);
	else printf("%d %d\n", m - 1, n);
	return 0;
}

#include <stdio.h>
#include <stdlib.h>

int n,m;
int main()
{
    scanf("%i %i",&n,&m);
    int m1,m2;
    if (n<=m)
    {
        m1=n;m2=m;
    }
    else{m1=m;m2=n;}
    printf("%i %i",m2-1,m1);

    return 0;
}

#include<stdio.h>
#include<string.h>
int main()
{
	char str1[500000],str2[500000];
	int m, n;
	scanf("%d %d", &n, &m);
	int i, j, k;
	int countRed=n, countBlue=m;
	str1[0]='r';
	for(i=1;i<=m+n;i++)
	{
		if(i%2==1)
		{
			if(str1[i-1]=='r')
			{
				if(countRed>0)
				{
					str1[i]='r';
					countRed--;
				}
				else
				{
					str1[i]='b';
					countBlue--;
				}
			}
			else if(str1[i-1]=='b')
			{
				if(countBlue>0)
				{
					str1[i]='b';
					countBlue--;
				}
				else
				{
					str1[i]='r';
					countRed--;
				}
			}
		}
		else
		{
			if(str1[i-1]=='r')
			{
				if(countBlue>0)
				{
					str1[i]='b';
					countBlue--;
				}
				else
				{
					str1[i]='r';
					countRed--;
				}
			}
			else if(str1[i-1]=='b')
			{
				if(countRed>0)
				{
					str1[i]='r';
					countRed--;
				}
				else
				{
					str1[i]='b';
					countBlue--;
				}
			}
		}
	}
	str2[0]='b';
	countBlue=m;countRed=n;
	for(i=1;i<=m+n;i++)
	{
		if(i%2==1)
		{
			if(str2[i-1]=='b')
			{
				if(countBlue>0)
				{
					str2[i]='b';
					countBlue--;
				}
				else
				{
					str2[i]='r';
					countRed--;
				}
			}
			else if(str2[i-1]=='r')
			{
				if(countRed>0)
				{
					str2[i]='r';
					countRed--;
				}
				else
				{
					str2[i]='b';
					countBlue--;
				}
			}
		}
		else
		{
			if(str2[i-1]=='b')
			{
				if(countRed>0)
				{
					str2[i]='r';
					countRed--;
				}
				else
				{	str2[i]='b';
					countBlue--;
				}
			}
			else if(str2[i-1]=='r')
			{
				if(countBlue>0)
				{
					str2[i]='b';
					countBlue--;
				}
				else
				{	str2[i]='r';
					countRed--;
				}
			}
		}
	}
	int count1=0, count2=0,count3=0, count4=0;
	//printf("%s %s",str1, str2);
	for(i=1;i<strlen(str1)-1;i++)
	{
		if(str1[i]==str1[i+1])
		 count1++;
		else
			count3++;
		if(str2[i]==str2[i+1])
			count2++;
		else
			count4++;
	}
	if(count1>count2)
		printf("%d %d\n",count1, count3);
	else
		printf("%d %d\n",count2, count4);
	return 0;
}

#include <stdio.h>

int main(void) {
 					int pet,vas,n,m,min,max;
 					scanf("%d %d",&n,&m);
 					max=n>m?n:m;
 					min=n>m?m:n;
 					pet=max-1-(max%2&&!min%2?1:0);
 					vas=min+(max%2&&!min%2?1:0);
 					printf("%d %d\n",pet,vas);
	return 0;
}

#include <stdio.h>

void func(int ln, int lm, int last, int *_ps, int *_vs)
{
    int ps, vs, t;
    ps = vs = t = 0;
    while (ln > 0 || lm > 0)
    {
        if (t == 0)
        {
            if (last == 0)
            {
                if (lm > 0)
                {
                    last = 1;
                    vs ++;
                    lm --;
                }
                else
                {
                    ps ++;
                    ln --;
                }
            }
            else
            {
                if (ln > 0)
                {
                    last = 0;
                    vs ++;
                    ln --;
                }
                else
                {
                    ps ++;
                    lm --;
                }
            }
        }
        else
        {
            if (last == 0)
            {
                if (ln > 0)
                {
                    ps ++;
                    ln --;
                }
                else
                {
                    last = 1;
                    vs ++;
                    lm --;
                }
            }
            else
            {
                if (lm > 0)
                {
                    ps ++;
                    lm --;
                }
                else
                {
                    last = 0;
                    vs ++;
                    ln --;
                }
            }
        }
        t = 1 - t;
    }
    *_ps = ps;
    *_vs = vs;
}

void solve(int n, int m)
{
    int ps, vs, px, vx;
    func(n - 1, m, 0, &ps, &vs);
    func(n, m - 1, 1, &px, &vx);
    if (ps > px)
    {
        printf("%d %d\n", ps, vs);
    }
    else if (ps < px)
    {
        printf("%d %d\n", px, vx);
    }
    else if (vs < vx)
    {
        printf("%d %d\n", ps, vs);
    }
    else
    {
        printf("%d %d\n", px, vx);
    }
}

int main()
{
    int n, m;
    while (scanf("%d%d", &n, &m) == 2)
    {
        solve(n, m);
    }
    return 0;
}

#include<stdio.h>
int main()
{
	int n,m;
	scanf("%d %d",&n,&m);
	if(n>m)
	printf("%d %d",n-1,m);
	else
	printf("%d %d",m-1,n);
	return 0;
}

#include <stdio.h>

int main() {
    int n, m;
    int s1, s2;
    scanf("%d %d", &n, &m);

    s2 = n < m ? n : m;
    s1 = n + m - s2 - 1;
    printf("%d %d\n", s1, s2);
    return 0;
}

#include <stdio.h>

#define MAXN 100002

#define R 0x1
#define B 0x2

unsigned char balls[MAXN+MAXN];

void solve(int prev, int r, int b, int *s1, int *s2) {
	int turn = 0x1;
	int curr;
	if (prev == R) r--;
	else b--;
	*s1 = 0;
	*s2 = 0;
	while (r + b > 0) {
		if (turn == 0) {
			if (prev == R) {
				if (r > 0) {
					r--;
					curr = R;
				}
				else if (b > 0) {
					b--;
					curr = B;
				}
			} else {
				if (b > 0) {
					b--;
					curr = B;
				} else if (r > 0) {
					r--;
					curr = R;
				}
			}
		} else {
			if (prev == R) {
				if (b > 0) {
					b--;
					curr = B;
				} else if (r > 0) {
					r--;
					curr = R;
				}
			} else {
				if (r > 0) {
					r--;
					curr = R;
				} else if (b > 0) {
					b--;
					curr = B;
				}
			}
		}

		if (prev == curr) ++(*s1);
		else ++(*s2);
		turn ^= 0x1;
		prev = curr;
	}
}

int main() {
	int s1, s2;
	int s3, s4;
	int r, b;
	scanf("%d %d", &r, &b);

	solve(R, r, b, &s1, &s2);
	solve(B, r, b, &s3, &s4);
	if (s1 > s3) {
		printf("%d %d\n", s1, s2);
	} else {
		printf("%d %d\n", s3, s4);
	}
	return 0;
}

#include <stdio.h>

int main() {
  int blue, red; //number of blue cubes, red cubes left
  scanf("%d %d", &red, &blue);
  int i;

  //blue first
  int blue_b = blue, red_b = red;
  int same_b = 0, diff_b = 0; //peter = same, vasya = diff

  char prev = 'b';
  blue_b--;

  for(i = 1; i < blue+red; i++) {
    if(i % 2 == 1) { //vasya's turn, wants different
      if(prev == 'b') {
	if(red_b > 0) {
	  red_b--;
	  prev = 'r';
	  diff_b++;
	}
	else{
	  blue_b--;
	  same_b++;
	}
      }
      else if(prev == 'r') {
	if(blue_b > 0) {
	  blue_b--;
	  prev = 'b';
	  diff_b++;
	}
	else {
	  red_b--;
	  same_b++;
	}
      }
    }

    if(i % 2 == 0) { //petya's turn, wants same
      if(prev == 'r') {
	if(red_b > 0) {
	  red_b--;
	  same_b++;
	}
	else {
	  blue_b--;
	  diff_b++;
	  prev = 'b';
	}
      }
      else if(prev == 'b') {
	if(blue_b > 0) {
	  blue_b--;
	  same_b++;
	}
	else {
	  red_b--;
	  diff_b++;
	  prev = 'r';
	}
      }
    }
  }

  //red first
  int blue_r = blue, red_r = red;
  int same_r = 0, diff_r = 0; //peter = same, vasya = diff

  prev = 'r';
  red_r--;

  for(i = 1; i < blue+red; i++) {
    if(i % 2 == 1) { //vasya's turn, wants different
      if(prev == 'b') {
	if(red_r > 0) {
	  red_r--;
	  prev = 'r';
	  diff_r++;
	}
	else{
	  blue_r--;
	  same_r++;
	}
      }
      else if(prev == 'r') {
	if(blue_r > 0) {
	  blue_r--;
	  prev = 'b';
	  diff_r++;
	}
	else {
	  red_r--;
	  same_r++;
	}
      }
    }

    if(i % 2 == 0) { //petya's turn, wants same
      if(prev == 'r') {
	if(red_r > 0) {
	  red_r--;
	  same_r++;
	}
	else {
	  blue_r--;
	  diff_r++;
	  prev = 'b';
	}
      }
      else if(prev == 'b') {
	if(blue_r > 0) {
	  blue_r--;
	  same_r++;
	}
	else {
	  red_r--;
	  diff_r++;
	  prev = 'r';
	}
      }
    }
  }

  if(same_r > same_b) {
    printf("%d %d", same_r, diff_r);
  }
  else {
    printf("%d %d", same_b, diff_b);
  }
  return 0;
}

#include<stdio.h>
int main()
{
    int a,b,g,s;
    scanf("%d %d",&a,&b);
    g=(a>b?a:b);
    s=(a<=b?a:b);
    printf("%d %d",g-1,s);
    return 0;
}

#include<stdio.h>
int main()
{
int m,n,a,b;
scanf("%d %d",&n,&m);
if(n>m)
{a=n-1;
b=m;
}
else
{a=m-1;
b=n;
}
printf("%d %d",a,b);
}

#include <stdio.h>

int main()
{
    int N,M ;
    scanf("%d %d",&N,&M);
    if(N>=M)
    {
        printf("%d %d\n",N-1,M);
    }
    else
    {
        printf("%d %d\n",M-1,N);
    }
    return 0;
}

#include<stdio.h>
#include<stdlib.h>
int main()
{
	int n,m;
	scanf("%d%d",&n,&m);
	int out,diff;
	if(m<n){
		out=m;
		diff = n-m;
	}
	else{
		out = n;
		diff = m-n;
	}
	printf("%d %d\n",out+diff-1,out);

	return 0;
}

#include <stdio.h>

int n, m;

void calc(int m, int n, int prev, int *a, int *b)
{
    int i, u = 0, v = 0;
    int c[2];
    c[0] = m; c[1] = n;

    for (i = 1; i <= m + n; ++i)
    {
        if ((i & 1) == 1)
        {
            if (c[!prev] > 0)
            {
                prev = !prev;
                ++v;
            }
            else ++u;
            --c[prev];
        }
        else
        {
            if (c[prev] > 0) ++u;
            else
            {
                prev = !prev;
                ++v;
            }
            --c[prev];
        }
    }

    *a = u;
    *b = v;
}

int main(void)
{
    int i, a, b, c, d;
    scanf("%d%d", &n, &m);

    calc(m - 1, n, 0, &a, &b);
    calc(m, n - 1, 1, &c, &d);

    if (a > c) printf("%d %d\n", a, b);
    else printf("%d %d\n", c, d);

    return 0;
}

#include<stdio.h>
int n,m;
int main()
{
    scanf("%d%d",&n,&m);
    if(n>m)
      printf("%d %d\n",n-1,m);
      else printf("%d %d\n",m-1,n);
    return 0;
}

#include<stdio.h>
int main()
{
    int i,n,m,x,y;
    scanf("%d%d",&n,&m);
    x=n>m?n:m;
    y=n<m?n:m;
    printf("%d %d",2*(y/2)+(x-2*(y/2)-1),y);
    return 0;
}

#include <stdio.h>
int main(){
    int n,m;
    scanf("%d%d",&n,&m);
    if(n>=m)
        printf("%d %d",n-1,m);
    else
        printf("%d %d",m-1,n);
   return 0;
}

#include<stdio.h>
int main()
{
    int n,m;
    scanf("%d%d",&n,&m);
    if(n>=m)
    printf("%d %d\n",n-1,m);
    else
    printf("%d %d\n",m-1,n);
    return 0;

}

#include<stdio.h>
int main()
{
	long long int n,m,min,total=0,petya,vasya;
	scanf("%lld%lld",&n,&m);
	if(n<=m)
	{
		//printf("*");
		min=n;
		//printf("%lld\n",min);
	}
	else
		min=m;
	total=n+m-1;
	//printf("%lld\n",total);
	petya=total-min;
	vasya=min;
	printf("%lld %lld\n",petya,vasya);
	return 0;
}

#include <stdio.h>
#include <stdlib.h>

static void swap (void *u, void *v, size_t n) {
  char *r = u, *s = v, t;
  while (n-- > 0) {
    t = *r;
    *r++ = *s;
    *s++ = t;
  }
}

int main (void) {
  int r, n, m, s1 = 0, s2 = 0;
  scanf ("%d %d\n", &n, &m);
  if (m > n)
    swap (&n, &m, sizeof n);
  --m; r = 1;
  while (n > 0 || m > 0) {
    --n; --m;
    if (n >= 0) {
      if (r == 0)
        ++s1;
      else
        ++s2;
      r = 0;
    }

    if (m >= 0) {
      if (r == 0)
        ++s1;
      else
        ++s2;
      r = 1;
    }
  }
  printf ("%d %d\n", s1, s2);
  exit (EXIT_SUCCESS);
}

#include<stdio.h>
int main()
{
    int t,white,black,opposite;
        scanf("%d%d",&black,&white);
        //Minimum of both ball goes to Aaquib's Points and remaining will make pair with Prashant as both play equally good
        opposite=black<white?black:white;
        printf("%d %d\n",black+white-1-opposite,opposite);
    return 0;
}

#include <stdio.h>
int main()
{
    int n,m,i,j,k,ans1,ans2,min,max;
    scanf("%d",&n);
    scanf("%d",&m);
    if(n<m)
    {
        min=n;
        max=m;
    }
    else
    {
        min=m;
        max=n;
    }
    max--;
    ans2=min;
    ans1=min/2;
    ans1+=(min/2)-1;
    max=max-2*((min/2)-1);
    ans1+=max-1;
    printf("%d %d\n",ans1,ans2);
    return 0;
}

#include <stdio.h>
int main()
{
    int n,m,i,j,k,ans1,ans2,min,max;
    scanf("%d",&n);
    scanf("%d",&m);
    if(n<m)
    {
        min=n;
        max=m;
    }
    else
    {
        min=m;
        max=n;
    }
    max--;
    ans2=min;
    ans1=min/2;
    ans1+=(min/2)-1;
    max=max-2*((min/2)-1);
    ans1+=max-1;
    printf("%d %d",ans1,ans2);
    return 0;
}

#include<stdio.h>

int main()
{
    int *arr, i, j, n, m, k, temp, rem, acnt=0, bcnt=0;
    scanf("%d%d", &n, &m);

    if(n > m)
    {
        temp = n;
        n = m;
        m = temp;
    }
    acnt = m - 1;
    bcnt = n;
    printf("%d %d", acnt, bcnt);
    return 0;
}

#include<stdio.h>

main()
{
    int petya,vasya,r,b;
    scanf(" %d %d",&r,&b);
    if(r>b)
    vasya=b;
    else
    vasya=r;
    petya=r+b-vasya-1;
    printf("%d %d\n",petya,vasya);
    return 0;
}

#include<stdio.h>

int main()
{
    int a,b;
    scanf("%d %d",&a,&b);

    if(a>b)
        printf("%d %d\n",a-1,b);
    else
        printf("%d %d\n",b-1,a);

    return 0;
}

#include<stdio.h>
#define min(a,b) ((a<b)?a:b);
int main()
{
    int n,m,ans;
    scanf("%d%d",&n,&m);
    ans=min(n,m);
    printf("%d %d",n+m-1-ans,ans);
    return 0;
}

#include <stdio.h>

int main()
{
	int m,n,min,max;
	scanf("%d %d",&m,&n);
	max=m;
	min=n;
	if (n>max){
		max=n;
		min=m;
	}
	printf("%d %d",max-1,min);
	return 0;
}

#include<stdio.h>

int main()
{
    int n,m,i,temp,p=0,v=0;
    scanf("%d%d",&m,&n);

    if(m>n)
    {
        temp=m;m=n;n=temp;
    }
    p+=m-1;v+=m;
    //if(m%2)
    {
        p+=n-m;
    }

    printf("%d %d\n",p,v);
    return(0);
}

#include<stdio.h>

int main()
{
    int n,m;
    scanf("%d %d",&n,&m);
    n >= m ? printf("%d %d",n-1, m) : printf("%d %d",m-1, n);
    return 0;
}

#include<stdio.h>
int main()
{
    int m,n,t;
    scanf("%d %d",&m,&n);
    if(m<n)
   {

    t=m;
    m=n;
    n=t;}
    printf("%d %d\n",m-1,n);

    return 0;
}

#include <stdio.h>
#include <stdlib.h>

int a,b,x;
int main(){
	scanf("%d %d", &a,&b);
	x=(a>b)?b:a;
	printf("%d %d", a+b-1-x, x);
	return 0;
}

main()
{
    int n,m;
    scanf("%d%d",&n,&m);
    if(n>m)     printf("%d %d\n",n-1,m);
    else    printf("%d %d\n",m-1,n);
    return 0;
}

#include <stdio.h>

char ans[1234567];

int main(){

	int n, m;
	scanf("%d%d", &n, &m);

	int cnt = 0, nn = n, mm = m;

	for(int i = 0; i < n + m; i++){

		if(i == 0){
			if(nn < mm && nn){
				ans[cnt++] = 'r';
				--nn;
			}
			else{
				ans[cnt++] = 'b';
				--mm;
			}
			continue;
		}

		if(i & 1){
			if(ans[i - 1] == 'r'){
				if(mm){
					ans[cnt++] = 'b';
					--mm;
				}
				else{
					ans[cnt++] = 'r';
					--nn;
				}
			}
			else{
				if(nn){
					ans[cnt++] = 'r';
					--nn;
				}
				else{
					ans[cnt++] = 'b';
					--mm;
				}
			}
		}

		else{
			if(ans[i - 1] == 'r'){
				if(nn){
					ans[cnt++] = 'r';
					--nn;
				}
				else{
					ans[cnt++] = 'b';
					--mm;
				}
			}
			else{
				if(mm){
					ans[cnt++] ='b';
					--mm;
				}
				else{
					ans[cnt++] = 'r';
					--nn;
				}
			}
		}

	}

	int a = 0, b = 0;
	for(int i = 0; i < cnt - 1; i++){
		if(ans[i] == ans[i + 1]){
			++a;
		}
		else{
			++b;
		}
	}

	printf("%d %d\n", a, b);

	return 0;
}

#include<stdio.h>
#include<string.h>
int main()
{
	char str1[500000],str2[500000];
	int m, n;
	scanf("%d %d", &n, &m);
	int i, j, k;
	int countRed=n, countBlue=m;
	str1[0]='r';
	for(i=1;i<=m+n;i++)
	{
		if(i%2==1)
		{
			if(str1[i-1]=='r')
			{
				if(countRed>0)
				{
					str1[i]='r';
					countRed--;
				}
				else
				{
					str1[i]='b';
					countBlue--;
				}
			}
			else if(str1[i-1]=='b')
			{
				if(countBlue>0)
				{
					str1[i]='b';
					countBlue--;
				}
				else
				{
					str1[i]='r';
					countRed--;
				}
			}
		}
		else
		{
			if(str1[i-1]=='r')
			{
				if(countBlue>0)
				{
					str1[i]='b';
					countBlue--;
				}
				else
				{
					str1[i]='r';
					countRed--;
				}
			}
			else if(str1[i-1]=='b')
			{
				if(countRed>0)
				{
					str1[i]='r';
					countRed--;
				}
				else
				{
					str1[i]='b';
					countBlue--;
				}
			}
		}
	}
	str2[0]='b';
	for(i=1;i<=m+n;i++)
	{
		if(i%2==1)
		{
			if(str2[i-1]=='b')
			{
				if(countBlue>0)
				{
					str2[i]='b';
					countBlue--;
				}
				else
				{
					str2[i]='r';
					countRed--;
				}
			}
			else if(str2[i-1]=='r')
			{
				if(countRed>0)
				{
					str2[i]='r';
					countRed--;
				}
				else
				{
					str2[i]='b';
					countBlue--;
				}
			}
		}
		else
		{
			if(str2[i-1]=='b')
			{
				if(countRed>0)
				{
					str2[i]='r';
					countRed--;
				}
				else
				{	str2[i]='b';
					countBlue--;
				}
			}
			else if(str2[i-1]=='r')
			{
				if(countBlue>0)
				{
					str2[i]='b';
					countBlue--;
				}
				else
				{	str2[i]='r';
					countRed--;
				}
			}
		}
	}
	int count1=0, count2=0,count3=0, count4=0;
	for(i=1;i<strlen(str1)-1;i++)
	{
		if(str1[i]==str1[i+1])
		 count1++;
		else
			count3++;
		if(str2[i]==str2[i+1])
			count2++;
		else
			count4++;
	}
	if(count1>count2)
		printf("%d %d\n",count1, count3);
	else
		printf("%d %d\n",count2, count4);
	return 0;
}

#include <stdio.h>

#define MAXN 100002

#define R 0x1
#define B 0x2

unsigned char balls[MAXN+MAXN];

void solve(int r, int b) {
	int turn = 0;
	int n = r + b;
	int i = 0;
	int c1 = 0;
	int c2 = 0;
	while (r + b > 0) {
		if (turn == 0) {
			/* Petya */
			if (i > 0) {
				if (balls[i-1] == R) {
					if (r > 0) {
						balls[i] = R;
						r--;
					} else if (b > 0) {
						b--;
						balls[i] = B;
					}
				} else {
					if (b > 0) {
						b--;
						balls[i] = B;
					} else if (r > 0) {
						r--;
						balls[i] = R;
					}
				}
			} else {
				if (r == 1) {
					balls[i] == R;
					r--;
				} else if (b == 1) {
					balls[i] == B;
					b--;
				} else if (r > b) {
					balls[i] = R;
					r--;
				} else if (b > r) {
					balls[i] = B;
					b--;
				}
			}

		} else {
			if (balls[i-1] == R) {
				if (b > 0) {
					b--;
					balls[i] = B;
				} else if (r > 0) {
					r--;
					balls[i] = R;
				}
			} else {
				if (r > 0) {
					r--;
					balls[i] = R;

				} else if (b > 0) {
					b--;
					balls[i] = B;
				}
			}
		}
		turn ^= 0x1;
		i++;
	}

	for (i = 1;i < n; i++) {
		if (balls[i-1] == balls[i]) {
			c1++;
		} else {
			c2++;
		}
	}
	printf("%d %d\n", c1, c2);
}

int main() {
	int r, b;
	scanf("%d %d", &r, &b);
	solve(r, b);
	return 0;
}

#include<stdio.h>
int main()
{int n,k,m,a,b,i,j,ans1=0,ans2=0;
scanf("%d %d",&n,&m);
k=n+m;
if(n>=m)
a=n;
else
a=m;
int arr[k];
for(i=0;i<k;i++)
{if(i<a)
arr[i]=1;
else
arr[i]=0;

}

for(i=0;i<k;i++)
{
if(arr[i]==arr[i+1]&&arr[i]==1)
ans1++;

}
if(m==1)
    ans2==1;
else
ans2=m/2;
printf("%d %d",ans1,ans2);
return 0;
}

#include <stdio.h>
#include <stdlib.h>

int main (void) {
  int A[2], B[2], C[2], dx[2], dy[2];
  long long cp;
  scanf ("%d %d %d %d %d %d", A, A+1, B, B+1, C, C+1);
  dx[0] = B[0] - A[0]; dx[1] = C[0] - B[0];
  dy[0] = B[1] - A[1]; dy[1] = C[1] - B[1];
  cp = (long long) dy[1]*dx[0] - (long long) dy[0]*dx[1];
  printf ("%s\n", cp < 0 ? "RIGHT" : cp == 0 ? "TOWARDS" : "LEFT");
  exit (EXIT_SUCCESS);
}

#include <stdio.h>
#include <stdlib.h>

int main (void) {
  int n, suf[] = {170,20,200,110,50,80}, P = sizeof suf / sizeof *suf;
  scanf ("%d", &n);

  if (n < 3)
    printf ("-1\n");
  else if (n == 3)
    printf ("210\n");
  else
    printf ("1%.*d%.*d\n", n - 4, 0, 3, suf[n % P]);

  exit (EXIT_SUCCESS);
}

#include<stdio.h>
int main()
{
    int t,white,black,opposite;
    scanf("%d",&t);
        scanf("%d%d",&black,&white);
        //Minimum of both ball goes to Aaquib's Points and remaining will make pair with Prashant as both play equally good
        opposite=black<white?black:white;
        printf("%d %d\n",black+white-1-opposite,opposite);
    return 0;
}


Someday, Drazil wanted to go on date with Varda. Drazil and Varda live on Cartesian plane. Drazil's home is located in point (0, 0) and Varda's home is located in point (a, b). In each step, he can move in a unit distance in horizontal or vertical direction. In other words, from position (x, y) he can go to positions (x + 1, y), (x - 1, y), (x, y + 1) or (x, y - 1). Unfortunately, Drazil doesn't have sense of direction. So he randomly chooses the direction he will go to in each step. He may accidentally return back to his house during his travel. Drazil may even not notice that he has arrived to (a, b) and continue travelling. Luckily, Drazil arrived to the position (a, b) successfully. Drazil said to Varda: "It took me exactly s steps to travel from my house to yours". But Varda is confused about his words, she is not sure that it is possible to get from (0, 0) to (a, b) in exactly s steps. Can you find out if it is possible for Varda?

You are given three integers a, b, and s ( - 109 ≤ a, b ≤ 109, 1 ≤ s ≤ 2·109) in a single line.

If you think Drazil made a mistake and it is impossible to take exactly s steps and get from his home to Varda's home, print "No" (without quotes). Otherwise, print "Yes".

NoteIn fourth sample case one possible route is: .

#include <stdio.h>
int main ()
{
	int a,b,s;
	scanf("%d %d %d",&a,&b,&s);
	if (a<0)
		a=0-a;
	if (b<0)
		b=0-b;

	if (a+b>s)
		printf("No\n");
	else if (a+b==s)
		printf("Yes\n");
	else if ((s-(a+b))%2==0)
		printf("Yes\n");
	else if ((s-(a+b))%2==1 || (s-(a+b))%2==-1)
		printf("No\n");
	return 0;
	//
}

#include<stdio.h>
#include<math.h>
int main(void)
{
	int a,b,s;
	scanf("%d %d %d",&a,&b,&s);
	if((s-(abs(a)+abs(b)))%2==0&&s>=(abs(a)+abs(b)))
		printf("yes");
	else
		printf("no");
	return 0;
}

#include<stdio.h>
#include<string.h>
#include<math.h>

int main()
{
    int a, b, s, d;
    scanf("%d %d %d", &a, &b, &s);
    d = abs(a) + abs(b);
    if (d > s || ((d-s)%2))
    {
        printf("No\n");
    }
    else
    {
        printf("Yes\n");
    }
    return 0;
}

#include<stdio.h>

int main()
{
    long long a, b, s;
    scanf("%lld%lld%lld",&a,&b,&s);
    if(a<0)
    a=-a;
    if(b<0)
    b=-b;
    if(s<a+b)
    printf("%s","NO");
    else
    {
    if((s-(a+b))%2==0)
    printf("%s","YES");
    else
    printf("%s","NO");
    }
    return 0;
}

#include<stdio.h>
int main()
{
	long long int a,b,s;
	scanf("%I64d%I64d%I64d",&a,&b,&s);
	if (a < 0)
		a = a*-1;
	if (b < 0)
		b = b*-1;
	s = s - (a + b);
	if (s % 2 == 0 && s>=0)
		printf("Yes\n");
	else
		printf("No\n");

	return 0;
}

#include<stdio.h>
#include<stdlib.h>
int main()
{
    long long n,m,k,t,d=1;
    scanf("%lld%lld%lld",&n,&m,&k);
    t=abs(m)+abs(n);
    if(t<k)
        d=k-t;
    if(t==k||d%2==0)
        printf("Yes\n");
    else
        printf("No\n");
    return 0;
}

#include <stdio.h>
#include <math.h>
#include <stdlib.h>

int main(){

int a,b,s;

scanf("%d %d %d",&a,&b,&s);

if (abs(a)+abs(b)>s)
printf("No");

else{
 if((a+b-s)%2==0)
      printf("Yes");
    else
    printf("No");
}

return 0;
}

#include<stdio.h>
int main(){
	int a,b,s;
	scanf("%d%d%d",&a,&b,&s);
	if (a < 0)
		a = -a;
	if (b < 0)
		b = -b;
	if (s >= (a + b) && ((s - (a + b)) % 2) == 0)
		printf("Yes");
	else printf("No");
	return 0;
}

#include "stdio.h"
#include "stdlib.h"

int main(int argc, char* argv[])
{
    int a, b, s;
    scanf("%d %d %d",&a,&b,&s);
    a=abs(a);b=abs(b);

    if ((a+b>s) || ((s-a+b) % 2!=0)) {printf("NO");} else {printf("YES");}
    scanf("%d %d %d",&a,&b,&s);
    return 0;
}

#include<stdio.h>
#include<math.h>
// 515A
int main(){
  int a, b, s;
  scanf("%d%d%d", &a, &b, &s);

  if(s < abs(a) + abs(b) ){
    printf("No");
  }
  else if((s - abs(a) - abs(b)) % 2 == 0 || s == abs(a) + abs(b))  printf("Yes");
  else printf("No");
	return 0;
}

#include<stdio.h>
int main()
{
    long long int a,b,s;
    scanf("%lld %lld %lld",&a,&b,&s);
    if(a<0)
    {
        a=-a;
    }
    if(b<0)
    {
        b=-b;
    }
    // printf("%lld",a);
    if(s>=a+b)
    {
        if((a+b-s)%2==0)
        {
        printf("Yes");
        }
        else
        {
        printf("No");
        }
    }
    else
    {
        printf("No");
    }

}

#include <stdio.h>
int main()
{
    long long int x,y,a;
    scanf("%I64d%I64d%I64d",&x,&y,&a);
    a = a-abs(x)-abs(y);
    if( a<0 )printf("No\n");
    else if(a==0 || a%2 == 0) printf("Yes\n");
    else printf("No\n");

}

#include<stdio.h>
main()
{
	long int a,b,s;

	scanf("%d %d %d",&a,&b,&s);
	if(a<0) a*=-1;
if(b<0) b*=-1;
	if(a==0 && b==0 && s%2==0)
	printf("Yes");

 	else  if((a+b)<s && (s-(a+b))%2==0)
	printf("Yes");

else if(a+b!=s)
	printf("No");

    else
    printf("Yes");

//printf("%d",(s-(a+b))%2);
	}

#include<stdio.h>
#include<math.h>
int main()
{
	int a,b,s,r;
	scanf("%d %d %d",&a,&b,&s);
	if(s>=abs(a)+abs(b))
	{
	r=(s-(abs(a)+abs(b)))%2;
	if(r==0)
	printf("Yes");
	else
	printf("No");
}
else
printf("No");
	return 0;
}

#include<stdio.h>
int main()
{
    int a,b,k,d;
    scanf("%d %d %d",&a,&b,&k);
    d=abs(a)+abs(b);
    if(d==k){
        printf("Yes");
    }
    else if(k>d && (k-d)%2==0){
        printf("Yes");
    }
    else printf("No");

 return 0;
 }

#include<stdio.h>
int main()
{
    long long int a,b,s;
    scanf("%I64d%I64d%I64d",&a,&b,&s);
    if(a<0)
    {
        a=a*(-1);
    }
    if(b<0)
    {
        b=b*(-1);
    }
    if(a+b==s)
    printf("YES");
    else if(a+b>s)
    printf("NO");
    else
    {
        if((a+b)%2==0 && s%2==0)
        printf("YES");
        else if((a+b)%2==1 && s%2==1)
        printf("YES");
        else
        printf("NO");
    }
    return 0;
}

#include <stdio.h>
int main()
{
    int n,i,j,a,b,c;
    scanf("%d %d %d",&a,&b,&c);
    if(a<0){
        a=-a;
    }
    if(b<0){
        b=-b;
    }
    if(c<(a+b)){
        printf("NO");
    }
    else if(c==(a+b)){
        printf("YES");
    }
    else if(c==(-a)||c==(-b)){
        printf("NO");
    }
    else{
        if((a+b)%2==0 && c%2==0){
            printf("YES");
        }
        else if((a+b)<0){
            printf("NO");
        }
        else if((a+b)%2!=0 && c%2!=0){
            printf("YES");
        }
        else{
            printf("NO");
        }
    }
    return 0;
}

long long b,a,s;
long long abs(long long x) {
  return x<0?-x:x;
}
main() {
  scanf("%lld%lld%lld", &a, &b, &s);
  a = abs(a), b = abs(b);
  puts(a+b<=s && ((a^b^s)&1LL) == 0LL?"Yes":"No");
}

#include <stdio.h>
#include <math.h>

int main(){
    long long int a,b,s,d;
    while (scanf("%I64d %I64d %I64d",&a,&b,&s)==3){
        a=fabs(a);
        b=fabs(b);
        d=s-(a+b);
        if ((a+b)==s){
            printf ("Yes\n");
        }
        else if (d>0&&d%2==0){
            printf ("Yes\n");
        }
        else if (a==0&&b==0){
            if (s%2==0){
                printf ("Yes\n");
            }
            else {
                printf ("No\n");
            }
        }
        else {
            printf ("No\n");
        }
    }
    return 0;
}

#include <stdio.h>
int main()
{
	long long sum, x, y, n;
	scanf("%I64d%I64d%I64d", &x, &y, &n);
	sum=(x>0?x:-x)+(y>0?y:-y);
	if(n<sum)
	{
		printf("No\n");
	}
	else if(n>=sum)
	{
		if(n%2==0)
		{
			//printf("=0");
			if(sum%2==0)
			{
				//printf("sum=%d\n", sum);
				printf("Yes\n");
			}
			else
			{
				printf("No\n");
			}
		}
		else
		{
			if(n%2!=0)
			{
				if(sum%2!=0)
				{
					printf("Yes\n");
				}
				else
				{
					printf("No\n");
				}
			}
		}
	}

	return 0;
}

#include<stdio.h>
#include<stdlib.h>
int main()
{
    long long int i,j,a,b,sum;
    scanf("%lld %lld %lld",&a,&b,&j);

    i=j-abs(a)+abs(b);

    if(j<(abs(a)+abs(b)) )
    printf("No");
    else
    {

    if(i%2==0)
    printf("Yes");
    else
    printf("No");
    }

    return 0;
}

#include<stdio.h>

int main()
{
    long a,b,s,x;
    scanf("%li %li %li",&a,&b,&s);
    if (a<0)
    a=(-a);
    if (b<0)
        b=(-b);

    x=s-(a+b);

    if (((x%2)==0)&& (s>=(a+b)))
        printf("Yes");
        else
        printf("No");
    return 0;

}

#include<stdio.h>
#include<math.h>

int main(){
	long long a,b,s;
	scanf("%lld%lld%lld",&a,&b,&s);
	int x=abs(a)+abs(b);
	if(s<x)
	printf("No");
	else if((s-x)%2==0)
	printf("Yes");
	else
	printf("No");
	return 0;
}

#include<stdio.h>
#include<string.h>
int main()
{
    long long a,b,s,sum;
    scanf("%lld %lld %lld", &a,&b,&s);
    if(a<0 && b < 0)
    {
        sum = -a + -b;
    }
    else if(a<0 && b >=0)
    {
        sum = b-a;
    }
    else if(a>=0 && b <0)
    {
        sum = a-b;
    }
    else
    {
        sum = a + b;
    }
    if(sum < s && (s-sum) % 2 != 0)
    {
        printf("No\n");
    }
    else if(sum>s)
    {
        printf("No\n");
    }
    else
    {
        printf("Yes\n");
    }
    return 0;
}

#include <stdio.h>

int main()
{
	int a,b,s,r,e,w,q;
	scanf("%d %d %d",&a,&b,&s);
	r=abs(a);
	e=abs(b);
	w=r+e;

	q=s-w;

	if (q%2==0 && q>=0){
		printf("Yes");
	}
	else{
		printf("No");
	}

	return 0;
}

#include<stdio.h>

int main()
{
    long long a,b,s;
    scanf("%lld%lld%lld",&a,&b,&s);
    if (a < 0) a = -a;
    if (b < 0) b = -b;
    if(a+b>s)
      printf("No\n");
    else if((a+b-s)%2)
      printf("No\n");
    else
      printf("Yes\n");
         return 0;
}

#include<stdio.h>
#include<math.h>
int main()
{
    int a,b,s;
    scanf("%d %d %d", &a,&b,&s);
    a=abs(a);
    b=abs(b);

    if(a+b>s || ((s-a-b)%2==1))
    {
        printf("No\n");
        return 0;
    }
        printf("Yes\n");
    return 0;
}

#include<stdio.h>
#include<math.h>

int main(){
    long long int a,b,s;
    scanf("%lld %lld %lld",&a,&b,&s);
    if(s>=abs(a)+abs(b) && (s-(abs(a)+abs(b)))%2==0)    puts("Yes");
    else    puts("No");
    return 0;
}

#include <stdio.h>
#include <stdlib.h>
#include<math.h>
int main()
{
    long long int a,b,c;
    scanf("%lli %lli %lli",&a,&b,&c);
    if((c-abs(a)-abs(b))>=0&&(c-abs(a)-abs(b))%2==0){
        printf("YES");
    }
    else{
        printf("NO");
    }
    return 0;
}

#include<stdio.h>
int main()
{
	long long int a,b,s;
	scanf("%lld %lld %lld",&a,&b,&s);
	if(a<0)
	{
		a=0-a;
	}
	if(b<0)
	{
		b=0-b;
	}
	if(s==(a+b))
	{
		printf("Yes");
	}
	else if(s>(a+b) && ((s-(a+b))%2==0))
	{
		printf("Yes");
	}
	else
	{
		printf("No");
	}
	return 0;
}

#include<stdio.h>
#include<math.h>
int main(){
	long long a,b,c;
	scanf("%lld %lld %lld",&a,&b,&c);
	long long s1=c-(abs(a)+abs(b));
	long long s2=abs(a)+abs(b)+c;
	if (s1>=0 && s2%2==0) printf("Yes");
	else printf("No");
	return 0;
}

#include <stdio.h>

long long aV(long long x)
{
    if (x <= 0)
        return x *= (-1);
    else
        return x;
}
void check(long long a, long long b, long long s)
{
    if (((aV(a) + aV(b)) <= s) && ((aV(a) + aV(b) + s) % 2 == 0))
        printf("Yes");
    else
        printf("No");
}
int main()
{
    long long a, b, s;
    scanf("%lld  %lld  %lld", &a, &b, &s);
    check(a, b, s);
}

#include<stdio.h>
#include<stdlib.h>
int main(){
    int z;
    int a,b;
    int c;
    scanf("%d%d%d", &a, &b, &c);
    a = abs(a);
    b = abs(b);
    z = a+b;
    if(c < z){
        printf("No");
        return 0;
    }
    if(c == z){
        printf("Yes");
        return 0;
    }
    if((z%2 == 0) ^ (c%2 == 0)){
        printf("No");
    }
    else{
        printf("Yes");
    }
    return 0;
}

#include <stdio.h>
typedef long long int intt64;
int main()
{
    intt64 a,b,c;
    scanf("%lld %lld %lld",&a,&b,&c);
    intt64 sum=0;
    if (a<0)
    {
        a*=-1;
    }
    if (b<0)
    {
        b*=-1;
    }
    sum+=a+b;
    if (c<sum)
    {
        printf("No");
        return 0;
    }
    if (c>=sum)
    {
        if (c==sum)
        {
            printf("Yes");
            return 0;
        }
        if (sum<c)
        {
            c-=sum;
            if (c%2==0)
            {
                printf("Yes");
                return 0;
            }
            else
            {
                printf("No");
                return 0;
            }
        }
    }
}

#include <stdio.h>
#include <stdlib.h>

int main()
{
    int a, b, s;
    scanf("%d %d %d", &a, &b, &s);

    a = abs(a);
    b = abs(b);
    s = abs(s);

    if(s < (a + b))
        printf("No");
    else if((s - (a + b)) % 2 == 0)
        printf("Yes");
    else
        printf("No");

    return 0;
}

#include<stdio.h>
#include<math.h>
int main(){
	long long a,b,c;
	scanf("%lld %lld %lld",&a,&b,&c);
	long long l=c-(abs(a)+abs(b));
	long long k=abs(a)+abs(b)+c;
	if (l>=0 && k%2==0) printf("Yes");
	else printf("No");
	return 0;
}

#include<stdio.h>
int main()
{
    long long a,b,s,x,y;
    scanf("%I64d %I64d %I64d",&a,&b,&s);
    if(a<0)
        a=0-a;
    if(b<0)
        b=0-b;

    x=a+b;
    if(s<x)
        printf("No");
    else
    {
        s=s-x;
        if(s%2==0)
            printf("Yes");
        else
            printf("No");
    }
    return 0;
}

#include<stdio.h>
#include<stdlib.h>

int main(void){
     int d;
     int a,b,c;
    scanf("%d ",&a);
    scanf("%d ",&b);
    scanf("%d ",&c);

    if((a>0 && b>0) || (a<0 && b<0)){
        d= abs(a+b);
    }
    else{
        d=abs(a-b);
    }
    if((c-d)%2==0 && c>=d){
        printf("Yes");
    }
    else{
        printf("No");
    }

}

#include<stdio.h>

int main()
{
    int a, b, s;
    scanf("%d%d%d", &a, &b, &s);
    if(a<0 && b>=0)
    {
        a = -1*a;
    }
    else if(a<0 && b<0)
    {
        a = -1 * a;
        b = -1*b;
    }
    else if(a>=0 && b<0)
    {
        b = b*-1;
    }
    if(a+b<=s)
    {
        if((a+b-s)%2==0)
            printf("Yes");
        else
            printf("No");
    }
    else if(a+b>s)
    {
        printf("No");
    }
    return 0;

}

#include <stdio.h>
#include <stdlib.h>

int main()
{
    long n, x, y;
    scanf("%d %d %d", &x, &y, &n);
    n=n-(abs(x)+abs(y));
    if(n%2==0 && n>=0)
        printf("YES");
    else
        printf("NO");
}

#include<stdio.h>
int main()
{
    int a,b,c,d,e;
    while(scanf("%d%d%d",&a,&b,&c)==3)
    {
        if(a<0) a *=-1;
        if(b<0) b *=-1;
        d = a+b;
        e = c-d;
        if(e<0) printf("No\n");
        else
        {
            if(e%2==0) printf("Yes\n");
            else printf("No\n");
        }

    }
    return 0;
}

#include <stdio.h>
#include <math.h>

int main(){
    long long a,b,s,tong;
    int test = 0 ;
    do {
        scanf("%lld%lld%lld",&a,&b,&s);
    }while (a <-1e9 || a>1e9 || b<-1e9 || b>1e9 || s<1 || s>2*1e9);
       tong =abs(a)+abs(b);
    if (s>=tong){
        if (s%2 == 0 && tong %2 ==0){
            test  =1;
    	}
        else if (s%2 !=0 && tong%2 != 0) {
            test =1;
    	}
    }
    if (test == 1) printf("Yes");
    else printf ("No");
    return 0;
}

#include <stdio.h>
#include <math.h>

int main()
{
    int a,b,s;
    scanf("%d %d %d",&a,&b,&s);

    int ans=0;

    ans=(s-(abs(a)+abs(b)))%2;

    if(ans==0 && s>=(abs(a)+abs(b)))
    {
        printf("YES");
    }
    else if(ans==1 || s<(abs(a)+abs(b)))
    {
        printf("NO");
    }

    return 0;
}

#include<stdio.h>
#include<math.h>
int main(){
	int a,b,n;
	scanf("%d%d%d",&a,&b,&n);
	a=abs(a);
	b=abs(b);
	if((a+b<n)&&a==0&&b==0&&n%2==0){
		printf("Yes");
		return 0;
	}
	else if(a+b==n){
		printf("Yes");
	}
	else if(a+b<n){
		if((n-a-b)%2==0){
			printf("Yes");
		}
		else printf("No");
	}
	else if(n%(a+b)==0){
		printf("Yes");
	}
	else printf("No");
}

#include<stdio.h>

int absolute(int a){
        if(a>0)
                return a;
        else
                return -a;
}

int main(){
        int a,b,s;
        scanf("%d %d %d", &a,&b,&s);
        int sum = absolute(a)+absolute(b);
        if( s >= sum && (s - sum) %2 == 0)
                printf("Yes");
        else
                printf("No");
        return 0;
}

#include<stdio.h>

int main()
{
	long long int a,b,s;
	scanf("%lld %lld %lld",&a,&b,&s);

	a = a>0 ? a: -a;
	b= b>0 ? b : -b;
	if((s-a-b)%2==0 && (s-a-b) >= 0)
		printf("Yes\n");
	else
		printf("No\n");
	return 0;
}

#include <stdio.h>

int main(void) {

int a,b,s;
scanf("%d%d%d",&a,&b,&s);
if(a<0)
{
    a=a*-1;

}

if(b<0)
{
    b=b*-1;

}

if(a+b<=s  && (s-(a+b))%2==0 )

{

printf("Yes");

}

else
{

printf("No");

}

    return 0;
}

#include<stdio.h>
#include<math.h>
	int main (){
		long long  x ,a , b , s;
		scanf("%lld%lld%lld", &a , &b , &s);
		x= abs(a)+abs(b);
		if( s<x ){
			printf("No");
		}
		else if(s>=x){
			if((s-x)%2==0){
				printf("Yes");
			}
			else if((s-x)%2!=0){
				printf("No");
			}

		}
	}

#include<stdio.h>
#include<math.h>
int main()
{
    int a,b,s,sum,sum1,sum2;
    scanf("%d %d %d",&a,&b,&s);
    sum2=abs(a)+abs(b);
    if(sum2<=s&&((s-sum2)%2==0))
    {
        printf("Yes");
    }
    else
    {
        printf("No");
    }
    return 0;
}

#include<stdio.h>
int main()
{
	long long int x,y;
	unsigned long long int s;
	scanf("%lld %lld %lld",&x,&y,&s);
	if(x<0)
	{
		x=-1*x;
	}
	if(y<0)
	{
		y=-1*y;
	}
	if(s<(x+y)||((s-x-y)%2)!=0)
	{
		printf("No");
	}
	if(s>=(x+y)&&(s-x-y)%2==0)
	{
		printf("Yes");
	}
	return 0;
}

#include<stdio.h>
#include<math.h>

int main()
{
    int a,b,c,x;
    scanf("%d%d%d",&a,&b,&c);
    a=abs(a);
    b=abs(b);
    x=c-(a+b);
    if((c-(a+b)>1&&x%2==0)||a+b==c)
        printf("YES");
    else
        printf("NO");
    return 0;
}

#include<stdio.h>
#include<math.h>

int main(){
	long long int x,y,a;

	scanf("%lld %lld %lld",&x,&y,&a);
	if(abs(abs(a)-abs(x)+abs(y)) % 2 || (abs(x)+abs(y) > abs(a))){ puts("No"); return 0; }
	puts("Yes");

	return 0;
}

#include<stdio.h>
int main()
{
    long long int a,b,s;
    scanf("%lld%lld%lld",&a,&b,&s);
    if(abs(abs(a)+abs(b))<=s && abs(abs(abs(a)+abs(b))-s)%2==0)printf("YES");
    else printf("NO");
    return 0;
}

//
//  main.c
//  Codeforce
//
//  Created by izmaylav on 4/20/15.
//  Copyright (c) 2015 izmaylav. All rights reserved.
//

#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <float.h>

int cmpfunc (const void * a, const void * b)
{
   return ( *(int*)a - *(int*)b );
}

int main(int argc, const char * argv[]) {
    char inputString[6000000];

    gets(inputString);

    char *aString = strtok(inputString, " ");
    int a = abs(atoi(aString));

    char *bString = strtok(NULL, " ");
    int b = abs(atoi(bString));

    char *cString = strtok(NULL, " ");
    int c = atoi(cString);
    if ((a + b < c && !((c - (a + b)) % 2)) || (a + b == c)) {
        printf("Yes");
    } else {
        printf("No");
    }

    return 0;
}

#include<stdio.h>
#include<math.h>
int main( )
{
	long long int a,b,s,c,k,l;
	scanf("%lld %lld %lld",&a,&b,&s);
	k=fabs(a);
	l=fabs(b);
	if((fabs(a)+fabs(b))!=0)
	{
		if((s)%(k+l)==0)
		{
			printf("Yes\n");
		}
		else if((s>(k+l))&&((s-(k+l))%2==0))
		{
			printf("Yes\n");
		}
		else
		{
			printf("No\n");
		}
	}
	else
	{
		if(s%2==0)
		{
			printf("Yes\n");
		}
		else
		{
			printf("No\n");
		}
	}

	return 0;
}

#include<stdio.h>
int main()
{
    long int a,b,s;
    scanf("%ld%ld%ld",&a,&b,&s);
    if(a<0)
        a=-a;
    if(b<0)
        b=-b;
    if((a+b)>s)
    printf("No\n");
    else
    {
        //s-=(a+b);
        if(s%2==(a+b)%2)
            printf("Yes\n");
        else
            printf("No\n");
    }
    return 0;
}

#include <stdio.h>
int main ()
{
long long int a,b,c;
scanf("%lld%lld%lld",&a,&b,&c);
if ((c>= ((a>0)? a:-a)+((b>0)? b:-b))&&((((a>0)?a:-a)+((b>0)?b:-b)-c)%2==0))
printf("Yes");
else
printf("No");
return 0;
}

#include<stdio.h>
int main()
{
    int a,b,s,n;
    scanf("%d %d %d",&a,&b,&s);
    if(a==0&&b==0)
    {
        if(s%2==0)
            printf("YES\n");
        else
            printf("NO\n");
    }
    else
    {
        if(a<0)
            a=-a;
        if(b<0)
            b=-b;
        if((s-a-b)<0)
            printf("NO\n");
        else
        {
            n=s-a-b;
            if(n%2==0)
                printf("YES\n");
            else
                printf("NO\n");
        }
    }
    return 0;
}

#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main()

{
    long long a,b,s,r;
    scanf("%I64d %I64d %I64d",&a,&b,&s);
    if(a<0){a=-a;}
     if(b<0){b=-b;}
    r=a+b;

    if(s>=r)
    {
        if(r%2==0)
        {
            if(s%2==0){printf("Yes");}
            else{printf("No");}
        }
         if(r%2!=0)
        {
            if(s%2!=0){printf("Yes");}
            else{printf("No");}
        }

    }
     if(s<r){printf("No");}

}

#include<stdio.h>
#include<math.h>
int main(){
	long long int a, b, s, aabs, babs;
	scanf("%llu%llu%llu", &a, &b, &s);
        aabs = llabs(a); babs = llabs(b);

	if(a == 0 && b == 0){
		if(s % 2 == 0)	printf("YES\n");
			else	printf("NO\n");
	}
		else{
			if(aabs + babs == s)	printf("YES\n");
				else	if((aabs + babs) < s && (s - (aabs + babs)) % 2 == 0)	printf("YES\n");
					else	printf("NO\n");
		}
	return 0;
}

#include <stdio.h>
#include <stdlib.h>

int main(int argc, char *argv[])
{
    long long int s;
    int a,b;

    scanf("%d %d %lld", &a, &b, &s);

    if(a<0) a=-a;
    if(b<0) b=-b;

    if(s<(a+b)) printf("No\n");
    else if((s%2) != (a+b)%2) printf("No\n");
    else printf("Yes\n");

    return 0;
}

#include<stdio.h>
int main()
{
    int a,b,s;
    scanf("%d%d%d",&a,&b,&s);
    if(a<0)
    a=-a;
    if(b<0)
    b=-b;

    if(a-s+b<=0&&(s-a-b)%2==0)
        printf("Yes");
        else
        printf("No");
    return 0;
}

#include<stdio.h>
#include<stdlib.h>
int main()
{
long int a,b,s;
scanf("%li%li%li",&a,&b,&s);
a=abs(a);
b=abs(b);
if(a==0 && b==0 && s%2==0)
printf("Yes");
else if(a+b==s)
printf("Yes");
else if((s-a-b)>0 && (s-a-b)%2==0)
printf("Yes");
else
printf("No");
}

#include<stdio.h>
#include<stdlib.h>

int main()
{
    long long int a,b,s,sum;

    scanf("%I64d %I64d %I64d",&a,&b,&s);

    sum=abs(a)+abs(b)-s;

    if(s<abs(a)+abs(b))
        printf("No");
    else if(abs(a)+abs(b)==s)
        printf("Yes");
    else if(sum%2!=0)
        printf("No");
    else
        printf("Yes");

    return 0;
}

#include<stdio.h>
#include<math.h>
int kt(int a,int b,int c){
	int step=c-(abs(a)+abs(b));
	if(step<0 || step%2==1)
		return 0;
	return 1;
}
int main(){
	int a,b,c;
	scanf("%d%d%d",&a,&b,&c);
	if(kt(a,b,c))
		printf("Yes");
	else
		printf("No");
	return 0;
}

#include<stdio.h>
int main()
{
    int a,b,s,sum,l;
    scanf("%d%d%d",&a,&b,&s);
    if(a<0)
        a=-a;
    if(b<0)
        b=-b;
    sum=a+b;
    l=s-sum;
    if(l<0||l%2!=0)
        printf("No");
    else if(l%2==0)
        printf("Yes");
}

#include<stdio.h>
#include<math.h>
int main(){
	long long a,b,s;
	scanf("%lld%lld%lld", &a,&b,&s);
	long long n=abs(a)+abs(b);
	long long m=s-n;
	if(s<0){
		printf("invalid input");
	}
	else if(s<n){
		printf("No");
	}
	else if(m%2!=0){
		printf("No");
	}
	else if(m%2==0){
		printf("Yes");
	}

   return 0;
}

#include<stdio.h>
#include<math.h>
// 515A
int main(){
  int a, b, s;
  scanf("%d%d%d", &a, &b, &s);

  if(s < abs(a) + abs(b) ){
    printf("No");
  }
  else if((s - abs(a) - abs(b)) % 2 == 0 || s == abs(a) + abs(b))  printf("Yes");
  else printf("No");
	return 0;
}

#include<stdio.h>
#include<string.h>
int main(){
	long int x;
	long int t;
	long int z;
	//long long int s=0;
	scanf("%lld",&x);
	scanf("%lld",&t);
	scanf("%lld",&z);
	if(x<0)
		x=x*-1;
	if(t<0)
		t=t*-1;
	if(x+t>z){
	printf("NO");
	return 0;
	}
	if((z-(x+t))%2==0){
	printf("YES");
	}
	else
		printf("NO");
return 0;
}

#include "stdio.h"
#include "stdlib.h"

int main(int argc, char* argv[])
{
    int a, b, s;
    scanf("%d %d %d",&a,&b,&s);
    a=abs(a);b=abs(b);

    if ((a+b>s) || ((s-a+b) % 2!=0)) {printf("NO");} else {printf("YES");}
    scanf("%d %d %d",&a,&b,&s);
    return 0;
}

#include<stdio.h>
#include<math.h>
int main()
{
  int a,b,s,i=0,flag=0;
  scanf("%d %d %d",&a,&b,&s);
  if(s<(abs(a)+abs(b)))  {printf("NO"); return 0;}
  else
     /*{while(i<=s-(a+b))
     {
      if(s==(abs(a)+abs(b))+2*i)
      {
        flag=1;
        break;
      }
      else
        flag=0;
      i++;
     }}*/
  if((s-abs(a)-abs(b))%2==0)  printf("YES");
  else printf("NO");

   return 0;
}

#include<stdio.h>
int main()
{
    long long a,s,b,sum;
    scanf("%I64d %I64d %I64d",&a,&b,&s);
    sum=abs(a)+abs(b);
    if(b==0&&a==0&&s%2==0) printf("Yes");
    else if(sum>s) printf("No");
    else if(sum%2!=0&&s%2!=0) printf("Yes");
    else if(sum%2==0&&s%2==0) printf("Yes");
    else printf("No");
}

#include<stdio.h>
#include<math.h>
int main()
{
	int a, b, s;
	scanf("%d %d %d", &a, &b, &s);
	a = abs(a), b = abs(b);
	if (a + b > s) printf("NO");
	else if (a + b == s) printf("YES");
	else
	{
		if ((s-a-b) % 2 == 0)printf("YES");
		else printf("NO");
	}
}

#include<stdio.h>
int main()
{
    long long int a,b,c;
    scanf("%lld%lld%lld",&a,&b,&c);
    if(a<0)
        a*=-1;
    if(b<0)
        b*=-1;
    if(c<0)
        c*=-1;
    if(a+b==c||(c-a+b)%2==0&&a+b<c)
        printf("YES\n");
    else
        printf("NO\n");
    return 0;
}

#include<stdio.h>
int main()

{
    long long x,a,b,s;
    scanf("%I64d %I64d %I64d",&a,&b,&s);
    if(a<0)
    {
        a=-a;
    }
    if(b<0)
    {
        b=-b;
    }
    x=a+b;
    x=s-x;
    if(x==0)
    {
        printf("Yes\n");
    }
    else if(x<0)
    {
        printf("No\n");
    }
    else
    {
        if(x%2==0) printf("Yes\n");
        else printf("No\n");
    }

}

#include<stdio.h>
int main()
{
    long x,y,s,minus;
    while(scanf("%ld %ld %ld",&x, &y, &s)!=EOF)
    {
        if(x<0) x=-1*x;
        if(y<0) y=-1*y;
        minus=s-(x+y);
        if(minus<0)
            printf("No\n");
        else
        {
            if(minus&1)
                printf("No\n");
            else
                printf("Yes\n");
        }

    }
    return 0;
}

#include <stdio.h>

int main(void) {
long long int a,b,s;
scanf("%lld %lld %lld",&a,&b,&s);
if(a<0)
a=-a;
if(b<0)
b=-b;
a=s-a-b;
if((a>=0)&&(a%2==0)){
	printf("YES");
	return 0;
}else{printf("NO");
	return 0;
}}

#include <stdio.h>
int main()
{
    int a,b,n;
    scanf("%d%d%d",&a,&b,&n);
    if(a<0) a=a*-1;
    if(b<0) b=b*-1;
    if(a+b>n||(n-a-b)%2==1) printf("No");
    else printf("Yes");
    return 0;
}

#include<stdio.h>

int main()
{
    long a,b,s,x;
    scanf("%li %li %li",&a,&b,&s);
    if (a<0)
    a=(-a);
    if (b<0)
        b=(-b);

    x=s-(a+b);

    if (((x%2)==0)&& (s>=(a+b)))
        printf("Yes");
        else
        printf("No");
    return 0;

}

#include<stdio.h>
int main()
{
    long long int a,b,s;
    scanf("%lld %lld %lld",&a,&b,&s);
    if(a<0)
    {
        a=-a;
    }
    if(b<0)
    {
        b=-b;
    }
    // printf("%lld",a);
    if(s>=a+b)
    {
        if((a+b-s)%2==0)
        {
        printf("Yes");
        }
        else
        {
        printf("No");
        }
    }
    else
    {
        printf("No");
    }

}

#include<stdio.h>

int absolute(int a){
        if(a>0)
                return a;
        else
                return -a;
}

int main(){
        int a,b,s;
        scanf("%d %d %d", &a,&b,&s);
        int sum = absolute(a)+absolute(b);
        if( s >= sum && (s - sum) %2 == 0)
                printf("Yes");
        else
                printf("No");
        return 0;
}

#include <stdio.h>
#include <stdlib.h>

int main(){
	long int a = 0, b = 0, s = 0;

	scanf("%ld %ld %ld", &a, &b, &s);

	if (abs(a) + abs(b) <= s && (a + b - s) % 2 == 0){

	printf("Yes");

	}
	else printf("No");

	return 0;

}

#include <stdio.h>
#include <stdlib.h>
#include<math.h>
int main()
{
    long long int a,b,c;
    scanf("%lli %lli %lli",&a,&b,&c);
    if((c-abs(a)-abs(b))>=0&&(c-abs(a)-abs(b))%2==0){
        printf("YES");
    }
    else{
        printf("NO");
    }
    return 0;
}

#include<stdio.h>
int main(){
    long long int a,b,s,e;
    scanf("%lld%lld%lld",&a,&b,&s);
    a*=(a<0?-1:1);
    b*=(b<0?-1:1);
    e=s-a-b;
    if(e>=0&&e%2==0)
        printf("Yes");
    else
        printf("No");
    return 0;}

#include<stdio.h>
#include<stdlib.h>
int main()
{
    long long int x,y,s;
    scanf("%lld%lld%lld",&x,&y,&s);
    if(abs(x)+abs(y)>s)
    {
        printf("No\n");
    }
    else
    {
        if(x+y==s)
        {
            printf("Yes\n");
        }
        else if((s-(x+y))%2==0)
        {
            printf("Yes\n");
        }
        else
        {
            printf("No\n");
        }
    }
}

#include <stdio.h>

int main () {
    int a, b, s;
    scanf("%d %d %d", &a, &b, &s);
    if (a < 0) a = -a;
    if (b < 0) b = -b;
    if ((s-a-b)%2 == 0 && (s-a-b) >= 0)
        printf("Yes\n");
    else
        printf("No\n");
    return 0;
}

#include<stdio.h>
int main()
{
    long x,y,a,b,c,d;
    scanf("%ld %ld %ld",&x,&y,&a);
    if(x>=0 && y>=0)
        b=x+y;
    if(x>0 && y<0)
        b=x+(-1)*y;
    if(x<0 && y>0)
        b=y+(-1)*x;
    if(x<0 && y<0)
        b=(-1)*x+(-1)*y;
    //printf("%d\n",b);
    if(b>a)
        printf("NO\n");
    else  if(b==a)
        printf("YES\n");
    else if(((b-a)%2==0))
        printf("YES\n");
    else
        printf("NO\n");

    return 0;
}

#include <stdio.h>
#include <stdlib.h>

int main()
{
    long int a ;
    scanf("%d",&a) ;
    long int b ;
    scanf("%d",&b) ;
    long int s ;
    scanf("%d",&s) ;

    if (a+b>s){
        if ((s-a-b)%2==0){
            printf("YES") ;
        }
        else {
                printf("NO");

        }
    }
    else {
        if ((a+b-s)%2==0){
            printf("YES") ;
        }
        else {
                printf("NO");

        }
    }
    return 0;
}

#include<stdio.h>
#include<stdlib.h>
int main()
{
    long long n,m,k,t,d=1;
    scanf("%lld%lld%lld",&n,&m,&k);
    t=abs(m)+abs(n);
    if(t>k)
        d=t-k;
    if(t==k||d%2==0)
        printf("Yes\n");
    else
        printf("No\n");
    return 0;
}

#include <stdio.h>
#include <stdlib.h>

int main(int argc, char *argv[])
{
    long long int s;
    int a,b;

    scanf("%d %d %lld", &a, &b, &s);

    if(!((a+b)%2)){
        if(s>=(a+b) && !(s%2))printf("Yes\n");
        else printf("No\n");
    }

    else{
        if(s>=(a+b) && (s%2)) printf("Yes\n");
        else printf("No\n");
    }

    return 0;
}

#include<stdio.h>
int main()
{
    long long int a,b,c;
    scanf("%lld%lld%lld",&a,&b,&c);
    if(a+b==c||(c-a+b)%2==0||(c%2==0&&a==0&&b==0))
        printf("YES\n");
    else
        printf("NO\n");
    return 0;
}

#include<stdio.h>

int main()
{

int a, b, s;

scanf("%d %d %d", &a, &b, &s);

if(s < a+b)
printf("No");

else
{

if((s - (a+b))%2 == 0)
printf("Yes");

else
printf("No");

}

return 0;

}

#include<stdio.h>
#include<stdlib.h>
int main()
{
	long long int i,j,k,l,m,n,a,b;
	printf("Enter the verda location points, and no.of steps to reach\n");
	scanf("%I64d%I64d%I64d",&a,&b,&n);
	if(a<0) a=a*(-1);
	if(b<0) b=b*(-1);
	if(a+b<=n&&(n-(a+b))%2==0) printf("YES");
	else printf("NO");
	return 0;
}

#include<stdio.h>

int main(){
    int a, b, s;

    scanf("%d %d %d", &a, &b, &s);

    if(((s-(a+b))%2) == 0) printf("YES\n");
    else printf("NO\n");

    return 0;
}

#include <stdio.h>
int main ()
{
long long int a,b,c;
scanf("%lld%lld%lld",&a,&b,&c);
if ((c>= a+b)&&((a+b-c)%2==0))
printf("Yes");
else
printf("No");
return 0;
}

#include <stdio.h>
#include <stdlib.h>

int main()
{
    long int a ;
    scanf("%d",&a) ;
    long int b ;
    scanf("%d",&b) ;
    long int s ;
    scanf("%d",&s) ;
    if (a+b<s){
        printf("NO");
    }
    else {
        if ((s-a-b)%2==0){
            printf("YES") ;
        }
        else {
                printf("NO");

        }
    }
    return 0;
}

#include <stdio.h>
#include <stdlib.h>

int main()
{
    long int a;
    long int b;
    long int s;
    long int x;
    scanf("%d",&a);
    scanf("%d",&b);
    scanf("%d",&s);
    x=abs(a)+abs(b);
    if ((x==s)||((x==0)&&(s==2))||((x==0)&&(s==0)))
    {
        printf("Yes");
    }
    else
    {
        printf("No");
    }
    return 0;
}

#include <stdio.h>
#include <stdlib.h>
int main()
{
	int a,b,s;
	scanf("%d%d%d",&a,&b,&s);
	int x=a+b;
	int d=s-x;
	if(d>=0 && (d==0 || d%2==0))
		printf("YES\n");
	else
		printf("NO\n");
	return 0;
}

#include <stdio.h>

int main()
{
 	int a, b, s;
	scanf ("%d %d %d", &a, &b, &s);
	int t=s-a-b;
	if (t%2==0 && t>0) printf ("Yes");
	else printf ("No");
	return 0;
}

// code by nhuquynh.

#include<stdio.h>
int main()
{
    int a,b,s,c;
    scanf("%d%d%d",&a,&b,&s);

    c=s-(a+b);

    if((a+b)>s)printf("No\n");
    else if(c%2!=0)printf("No\n");
    else printf("Yes\n");

    return 0;
}

#include<stdio.h>
int main()
{
    int x,y,s;
    scanf("%d%d%d",&x,&y,&s);
    if(x+y<=s)
    {if((x+y)%2==s%2)
        printf("Yes");
    else
        printf("No");}
    else
        printf("No");
    return 0;
}

#include<stdio.h>
#include<stdlib.h>
int main()
{
    long long int a,b,s;
    scanf("%lld %lld %lld",&a,&b,&s);
    long long int sum,i;
    sum=abs(b)+abs(a);
    if(s>=sum&&(a!=0||b!=0))
    {
    for(;s>=sum;s=s-sum)
    {
    }
    }
    if((s%2)==0)
    printf("Yes");
    else
    printf("No");
}

#include<stdio.h>
int main(){
	int a,b,s;
	scanf("%d %d",&a,&b,&s);
	if (a+b>=s && (a+b+s)%2==0) printf("YES");
	else printf("NO");
}

#include<stdio.h>

int main()
{
    long long a,b,s;
    scanf("%lld",&a);
    scanf("%lld",&b);
    scanf("%lld",&s);
    if(a==0 && b==0 && s==2)
       printf("Yes\n");
    else if(a+b==s)
         printf("Yes\n");
         else
         printf("No\n");
         return 0;
}

#include<stdio.h>
int main()
{
    long long int a,b,s,c;
    scanf("%lld %lld %lld",&a,&b,&s);
    if(a==0&&b==0)
    {
        if(s%2==0)
        printf("Yes");
        else
        printf("No");
    }
    else if(a==b)
    {
        if(a<0) a=a*-1;
        if(2*a<=s)
        printf("Yes");
        else printf("No");
    }
    else if(a>b)
    {
        if(2*b+a-b<0) c=(2*b+a-b)*-1;
        else c=2*b+a-b;
        if(c<=s)
        printf("Yes");
        else printf("No");
    }
    else if(a<b)
    {
        if(2*a+b-a<0) c=(2*a+b-a)*-1;
        else c=2*a+b-a;
        if(c<=s)
        printf("Yes");
        else printf("No");
    }
}

#include<stdio.h>

int main()
{
	int a,b,s;
	scanf("%d %d %d",&a,&b,&s);

	if((s-a-b)%2==0)
		printf("YES\n");
	else
		printf("NO\n");
	return 0;
}

#include<stdio.h>
#include<math.h>
int main(){
	long long a,b,s;
	scanf("%lld%lld%lld", &a,&b,&s);
	 a=abs(a);
	 b=abs(b);
	 if(a+b>=s && (s-a-b)%2==0){
	 	printf("Yes");
	 }
	 else printf("No");
    return 0;
}

#include<stdio.h>
int main()

{
    long long x,a,b,s;
    scanf("%I64d %I64d %I64d",&a,&b,&s);
    x=a+b;
    x=s-x;
    if(x==0)
    {
        printf("Yes\n");
    }
    else if(x<0)
    {
        printf("No\n");
    }
    else
    {
        if(x%2==0) printf("Yes\n");
        else printf("No\n");
    }

}

#include<stdio.h>
#include<math.h>

int main(){
	int a,b,s;
	scanf("%d%d%d",&a,&b,&s);
	if(a==0&&b==0){
		if(s%2==0) printf("Yes");
		else printf("No");
	}else if(a==0&&b!=0){
		if(s==abs(b)) printf("Yes");
		else printf("No");
	}else if(b==0&&a!=0){
		if(s==abs(a)) printf("Yes");
		else printf("No");
	}else{
		if(s==abs(a)+abs(b)) printf("Yes");
		else printf("No");
	}
	return 0;
}

#include<stdio.h>
int main()
{
    int x,y,s;
    scanf("%d%d%d",&x,&y,&s);
    if(x+y>s)
    {if((x+y)%2==s%2)
        printf("Yes");
    else
        printf("No");}
    else
        printf("No");
    return 0;
}

#include<stdio.h>
int main ()
{
    int a,b,s,i,j,flag=0;
    scanf("%d %d %d",&a,&b,&s);

    if(s<(a+b))
        printf("NO");
    else if((s-a+b)%2==0)
        printf("YES");
    //else if(s>=(a+b))
       // printf("YES");
    else
        printf("NO");

}

#include <stdio.h>
int main ()
{
int a,b,c;
scanf("%d%d%d",&a,&b,&c);
if ((c>= a+b)&&((a+b-c)%2==0))
printf("Yes");
else
printf("No");
return 0;
}

#include <stdio.h>
int main()
{
    long long int x,y,a;
    scanf("%I64d%I64d%I64d",&x,&y,&a);
    if((x==0 && y==0)&& a%2==0)printf("Yes\n");
    else if((x==0 && y==0)&& a%2!=0)printf("No\n");
    else if((abs(x)+abs(y))==a)printf("Yes\n");
    else if((a-(abs(x)+abs(y)))%2 ==0)printf("Yes\n");
    else printf("No\n");

}

#include<stdio.h>
#include<math.h>
int main()
{
    int a,b,s;
    scanf("%d %d %d", &a,&b,&s);
    a=abs(a);
    b=abs(b);

    if(a+b>s || (s-a-b%2==1))
        printf("No");
    else
        printf("Yes");
    return 0;
}

#include <stdio.h>
int main()
{
	long long sum, x, y, n;
	scanf("%I64d%I64d%I64d", &x, &y, &n);
	sum=(x>0?x:-x)+(y>0?y:-x);
	if(n<sum)
	{
		printf("No\n");
	}
	else if(n>=sum)
	{
		if(n%2==0)
		{
			if(sum%2==0)
			{
				printf("Yes\n");
			}
			else
			{
				printf("No\n");
			}
		}
		else
		{
			if(n%2!=0)
			{
				if(sum%2!=0)
				{
					printf("Yes\n");
				}
				else
				{
					printf("No\n");
				}
			}
		}
	}

	return 0;
}

#include <stdio.h>
#include <stdlib.h>

int main()

{
    int a,b,s,r;
    scanf("%d %d %d",&a,&b,&s);
    r=a+b;
    if(s>=r)
    {
        if(r%2==0)
        {
            if(s%2==0){printf("Yes");}
            else{printf("No");}
        }
         if(r%2!=0)
        {
            if(s%2!=0){printf("Yes");}
            else{printf("No");}
        }
        if(s<r){printf("No");}
    }
}

#include<stdio.h>
#include<math.h>
	int main (){
		long long  x ,a , b , s;
		scanf("%lld%lld%lld", &a , &b , &s);
		if( s<a+b ){
			printf("No");
		}

		x= abs(a)+abs(b);

		 if((s-x)%2==0){
			printf("Yes");
		}
		else if((s-x)%2 !=0){
			printf("No");
		}
	}

#include <stdio.h>
#include <string.h>
int main(){
	int a,b,s;
	scanf("%d%d%d",&a,&b,&s);
	if(a<0)
		a*=-1;
	if(b<0)
	    b*=-1;
	if((a+b)==0){
		if(s%2==1){
			printf("NO");
		}
		else
		printf("YES");
	}
	else{
	if(a+b>s||(s%2)==1){
		printf("NO");
	}
	else{
		printf("YES");
	}
}
}

#include<stdio.h>

int main()
{
    int a, b, s;
    scanf("%d%d%d", &a, &b, &s);
    if(a<0 && b>0)
    {
        a = -1*a;
    }
    else if(a<0 && b<0)
    {
        a = -1 * a;
        b = -1*b;
    }
    else if(a>0 && b<0)
    {
        b = b*-1;
    }
    if(a+b<=s)
    {
        if((a+b-s)%2==0)
            printf("Yes");
        else
            printf("No");
    }
    else if(a+b>s)
    {
        printf("No");
    }
    return 0;

}

#include<stdio.h>
int main()
{
	long int a,b,s,sum,j=0;
	printf("Enter the x,y coordinate and the value of s :");
	scanf("%ld %ld %ld",&a,&b,&s);
	sum=a+b;
	if(sum%2==0&&s%2==0&&s>=sum)
	{
	printf("YES");
	j=1;
    }
	if(sum%2!=0&&s%2!=0&&s>=sum)
	{
	printf("YES");
	j=1;
    }
	if(j==0)
	printf("NO");
}

#include<stdio.h>

int main()
{
    int a,b,s,r;
    scanf("%d %d %d",&a,&b,&s);
    if(abs(a)+abs(b)==s)
        printf("YES");

     else if(s%2==0 && a==b)
        printf("YES");
    else printf("NO");

    return 0;
}

#include<stdio.h>
int main()
{
    int a,b,s,s1;
    scanf("%d%d%d",&a,&b,&s);
    s1=a+b;
    //printf("%d",s1);
    if((a==0&&b==0&&s%2==0)||s1==s)
        printf("Yes");
    //else if(s1==s)
        //printf("Yes");
    else
        printf("No");
}

#include<stdio.h>
#include<math.h>

int main(){
	int x,y,a;

	scanf("%d %d %d",&x,&y,&a);
	if(abs(a-(x+y)) % 2){ puts("No"); return 0; }
	puts("Yes");

	return 0;
}

#include <stdio.h>
int main()
{
		int a,b,s;
		scanf("%d %d %d",&a,&b,&s);
		if((a+b)>s)
		printf("No");
		else if((a+b)==s)
		printf("Yes");
		else if (s>a+b)
		{ if(0==(s-(a+b))%2)
		printf("Yes");
		else
		printf("No");
		}
		return 0;
}

#include<stdio.h>
int main()

{
    long long x,a,b,s;
    scanf("%I64d %I64d %I64d",&a,&b,&s);
    x=a+b;
    x=s-x;
    if(x==0)
    {
        printf("Yes\n");
    }
    else if(x<0)
    {
        printf("No\n");
    }
    else
    {
        if(x%2==0) printf("Yes\n");
        else printf("No\n");
    }

}

#include<stdio.h>
int main()
{
	long long int a,b,s,i;

	scanf("%lld%lld%lld",&a,&b,&s);
	i=a+b-s;
	if(i%2==0 && i>=0)
		printf("Yes\n");
	else
		printf("No\n");
	return 0;
}

#include <stdio.h>
#include <stdlib.h>
main()
{
    long a=0,b=0,s=0;

    scanf("%ld %ld %ld",&a,&b,&s);
    if(a == 0 && b == 0 && s % 2 == 0)
        printf("Yes");
    else if((abs(a) + abs(b)) < s)
        printf("No");
    else if ((s >= (abs(a) + abs(b))  &&
              (s - (abs(a) + abs(b)))%2 )  )
        printf("Yes");
    else
        printf("No");
}

#include<stdio.h>
int main()
{
    long long a,b,s,sum;
    scanf("%I64d%I64d%I64d",&a,&b,&s);
    sum=abs(a)+abs(b);
    if(a==0&&b==0&&s%2)printf("YES");
    else if(sum>s)printf("NO");
    else if(sum%2!=0&&s%2!=0)printf("YES");
    else if(sum%2==0&&s%2==0)printf("NO");
    else printf("NO");

}

#include<stdio.h>

int main()
{
    int a,b,s,x,y,z;

    scanf("%d %d %d",&a,&b,&s);
    if(s<a+b)
        printf("No\n");
    else if(s==a+b){
        printf("Yes\n");
    }
    else{
        x=abs(a+b);
        if(!(x%2)){
            if(!(s%2))
                printf("Yes\n");
            else
                printf("No\n");
        }
        else{
            if(s%2)
                printf("Yes\n");
            else
                printf("No\n");
        }
    }
    return 0;
}

#include<stdio.h>
int main()
{
    int a,b,s,p;
    scanf("%d %d %d",&a,&b,&s);
    p=s-(a+b);
    if(a+b==s||(p%2==0&&p>0)) printf("Yes");
    else printf("No");
    return 0;
 }

#include<stdio.h>
int main()
{
int a,b,n;
scanf("%d%d%d",&a,&b,&n);
if((a+b-n)%2)
printf("No");
else
printf("Yes");
return 0;
}

#include<stdio.h>
int main()
{
    int n,m,i,j,k;
    scanf("%d %d %d",&n,&m,&k);
    i=n+m;
    if(i<k || (i-k)%2==1)
        printf("NO");
    else
        printf("YES");
}

#include <stdio.h>

int main(void) {

int a,b,s;
scanf("%d%d%d",&a,&b,&s);
if(a<0)
{
    a=a*-1;

}

if(b<0)
{
    b=b*-1;

}

if(s==a+b)

{

printf("Yes");

}

else if(s<a || s<b)
{

printf("No");

}

else if(s>a+b)

{

if(s%2)
{
 printf("No");

    }

    else
    {

        printf("Yes");
    }

}

    return 0;
}

#include<stdio.h>
int main()
{
    int a,b,k;
    scanf("%d %d %d",&a,&b,&k);
    if (a+b<=k && a+b%2==k%2)
    {
        printf("YES\n");
    }else
    printf("NO\n");
    return 0;
}

#include<stdio.h>
int main()
{
    long int a,b,s;
    scanf("%ld%ld%ld",&a,&b,&s);
    if(s<(a+b-2))
    printf("No\n");
    else
    {
        if(s%2!=0)
        {
            if((a+b)%2!=0)
            printf("Yes\n");
            else
            printf("No\n");
        }
        else
        {
            if((a+b)%2==0)
            printf("Yes\n");
            else
            printf("No\n");
        }
    }
    return 0;
}

#include<stdio.h>
int main()
{

    long long int a,b,s;
    scanf("%lld%lld%lld",&a,&b,&s);
    if(a<0)
    a=(0-a);
    if(b<0)
    b=(0-b);
    if((a==0 && b==0 && s==2) || (a+b==s) || ((s-(a+b))%2==0))
    printf("Yes");
    else
    printf("No");
    return 0;
}

#include<stdio.h>
int main()
{
 int a,b,s;
 scanf("%d%d%d",&a,&b,&s);
 if((s>=(a+b))&& (s-(a+b))%2==0)
   printf("Yes\n");
 else
   printf("No\n");
return 0;
}

#include<stdio.h>
#include<stdlib.h>
int main()
{
    long long int i,j,a,b,sum;
    scanf("%d %d %d",&a,&b,&j);

    i=abs(a+b-j);

    if(j<a+b)
    printf("No");
    else
    {

    if(i%2==0)
    printf("Yes");
    else
    printf("No");
    }

    return 0;
}

#include<stdio.h>
#include<math.h>
int main(){
	long long a,b,c;
	scanf("%lld %lld %lld",&a,&b,&c);
	long long l=c-(abs(a)+abs(b)-2);
	long long k=abs(a)+abs(b)+c;
	if (l>=0 && k%2==0) printf("Yes");
	else printf("No");
	return 0;
}

#include<stdio.h>
#include<math.h>
int main()
{
    int a,b,s,x,y;
    scanf("%d%d%d",&a,&b,&s);
    x=abs(s-(a+b));
    y=a+b;
    if((s>=y) && x%2==0)
    {
        printf("YES\n");
    }
    else
    {
        printf("NO\n");
    }
    return 0;
}

#include<stdio.h>
int main()
{
    long long int a,b,s;
    scanf("%lld %lld %lld",&a,&b,&s);
    if(s>=(a+b))
        printf("YES");
    else
        printf("NO");
    return 0;
}

#include <stdio.h>
int main ()
{
long long int a,b,c;
scanf("%lld%lld%lld",&a,&b,&c);
if ((c>= a+b)&&((a+b-c)%2==0))
printf("Yes");
else
printf("No");
return 0;
}

#include <stdio.h>
#include <math.h>
int main(){
	int a,b,s;
	scanf("%d%d%d",&a,&b,&s);
	int c=abs(a)+abs(b);
	if(c>s)
		printf("No");
	else if(c==s) printf("Yes");
	else{
		if(s%2==0)
			printf("Yes");
		else
			printf("No");
	}
}

#include<stdio.h>
int main()

{
    long long a,b,s;
    scanf("%I64d %I64d %I64d",&a,&b,&s);
    if(a+b!=s)
    {
        printf("No\n");
    }
    else if(((a+1)+(b+1))==s)
    {
        printf("Yes\n");
    }
    else if(a-b!=s)
    {
        printf("Yes\n");
    }
    else
    {
        printf("Yes\n");
    }
}

#include<stdio.h>
#include<math.h>
#include<string.h>
int main()
{
    long long int a, b, s, d;
    scanf("%lld %lld %lld", &a, &b, &s);
    d= a+b;
    if(a==0 && b==0){
        if(s%2==0){
            printf("Yes\n");
        }
        else{
            printf("No\n");
        }
    }
    else if(d>=s){
        if(d%2==0){
            printf("Yes\n");
        }
        else{
            printf("No\n");
        }
    }
    else{
        printf("No\n");
    }
    return 0;
}

#include <stdio.h>
#include <math.h>

int main(void) {
    // your code goes here
    long long int x,y;
    long long int s;
    long long int small;
    scanf("%lld %lld %lld",abs(&x),abs(&y),&s);
    //printf("%d %d", x, y);
    small=x+y;
    if(small%2==s%2 && s>=small)
        printf("Yes");
    else
        printf("No");

    return 0;
}

#include <stdio.h>
int main(){
	int a,b,s;
	scanf("%d%d%d",&a,&b,&s);
	int c=a+b;
	if(c>s)
		printf("No");
	else if(c==s) printf("Yes");
	else{
		if(s%2==0)
			printf("Yes");
		else
			printf("No");
	}
}

#include<stdio.h>
int main()
{
    long long int a,b,s;
    scanf("%lld%lld%lld",&a,&b,&s);
    if(abs(a+b)<=s && abs(abs(a+b)-s)%2==0)printf("YES");
    else printf("NO");
    return 0;
}

#include <stdio.h>
#include <stdlib.h>

int main()
{
    long int a, b, s, realL;
    scanf("%ld%ld",&a, &b);
    scanf("%ld",&s);

    realL = a+b;
    if(s-realL < 0)
        printf("No\n");
    else{
        if(s-realL == 0)
            printf("Yes\n");
        else{
            if((s-realL)%(s-realL)==0)
                printf("Yes\n");
            else{
                if((s-realL)%2)
                    printf("No\n");
                else
                    printf("Yes\n");
            }
        }
    }
    return 0;
}

#include <stdio.h>
#include <math.h>
int main (){
	int a,b,x;
	scanf("%d%d%d",&a,&b,&x);
	if ((abs(a)+abs(b))==x){
		printf("yes");
	}
	else if ((a==0) && (b==0)){
		printf("yes");
	}
	else {
		printf("no");
	}
	return 0;
}

#include <stdio.h>

int main () {
    int a, b, s;
    scanf("%d %d %d", &a, &b, &s);
    if ((s-a-b)%2 == 0 && (s-a-b) >= 0)
        printf("Yes\n");
    else
        printf("No\n");
    return 0;
}

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <math.h>

int main(int argc, char const *argv[])
{
	long long int a,b,s;
	scanf("%lld %lld %lld",&a,&b,&s);
	s -= a+b;
	if(s < 0)printf("NO");
	else if(s % 2 == 1) printf("NO");
	else printf("YES");
	return 0;
}

#include<stdio.h>
int main(){
	long long a,b,s;
	scanf("%lld%lld%lld",&a,&b,&s);
	if(a==0&&b==0){
		if(s%2!=0) printf("No");
		else printf("Yes");
	}
	else{
		if(s%(a+b)==0) printf("Yes");
		else printf("No");
	}
}

#include<stdio.h>
int main()
{

   int a,b,s,p;
   scanf("%d%d%d",&a,&b,&s);
   if(a<0)
    a=(-a);
   if(b<0)
    b=(-b);
    p=(a+b);
   s=s-(a+b);
   if(s<p || s%2==0)
    printf("No");
   else
    printf("Yes");
    return 0;
}

#include<stdio.h>
#include<math.h>

int main()
{
    int a,b,c;
    scanf("%d%d%d",&a,&b,&c);
    a=abs(a);
    b=abs(b);
    if(c-(a+b)>1||a+b==c)
        printf("YES");
    else
        printf("NO");
    return 0;
}

#include <stdio.h>
#include <math.h>
int main (){
	long long a,b,x;
	scanf("%lld%lld%lld",&a,&b,&x);
	if (((abs(a)+abs(b))==x) && ((x-(abs(a)+abs(b)))%2==0)){
		printf("yes");
	}
	else {
		printf("no");
	}
	return 0;
}

#include<stdio.h>
#include<math.h>
int main( )
{
	long long int a,b,s,c;
	scanf("%lld %lld %lld",&a,&b,&s);
	if((a+b)!=0)
	{
		if((s%(a+b))==0)
		{
			printf("Yes\n");
		}
		else
		{
			printf("No\n");
		}
	}
	else
	{
		printf("Yes\n");
	}

	return 0;
}

#include<stdio.h>

int main(){
    long long int a,b,s;
    scanf("%lld %lld %lld",&a,&b,&s);
    if(s>=a+b && (s-(a+b))%2==0)    puts("Yes");
    else    puts("No");
    return 0;
}

#include<stdio.h>
#include<stdlib.h>
int main()
{
    int a,b,steps;
    scanf("%d%d%d",&a,&b,&steps);
    if(steps < abs(a)+abs(b) || abs(a)+abs(b)+1 == steps)
        printf("No\n");
    else
        printf("Yes\n");
    return 0;
}

#include<stdio.h>
int main()
{
    int n,m,i,j,k;
    scanf("%d %d %d",&n,&m,&k);
    i=n+m;
    if(i>k || (k-i)%2==1)
        printf("NO");
    else
        printf("YES");
}

#include<stdio.h>
#include<math.h>
int main(){
	long long a,b,s;
	scanf("%lld%lld%lld",&a,&b,&s);
	if(a+b>s) printf("No");
	else{
		s=abs(s-(a+b));
		if(s%2==0) printf("Yes");
		else printf("No");
	}
}

#include<stdio.h>
int main()
{
    int a,b,c,s,k;
    scanf("%d%d%d",&a,&b,&s);
    k = abs(a) + abs(b);
    c = k/s;
    if(k==s) {
        printf("Yes");
    }
    else if(a==0 && b==0 && s%2==0)  {
        printf("Yes");
    }
    else if(c%2==0 && s > k &&  s%2==0) {
        printf("Yes");
    }
    else {
        printf("No");
    }
    return 0;
}

#include "stdio.h"
#include "math.h"
int main(){
    int a,b,s;
    scanf("%d %d %d",&a,&b,&s);
    if((s-(abs(a)+abs(b)))%2==0&&(s>=(a)+(b)))
        printf("Yes\n");
    else
        printf("No\n");
    return 0;
}

#include<stdio.h>
int main()
{
    long long int a,b,s,i;
    scanf("%I64d %I64d %I64d",&a,&b,&s);
    if(a<0)a=-a;
    if(b<0)b=-b;
     if(a==0 && b==0){if(s%2==0)printf("Yes");
                      return 0;
                      }
    for(i=a+b;i<=s;i=i+2){
        if(s%i==0){printf("Yes");
                   return 0;
    }
    }
    printf("No");
    return 0;
}

#include<stdio.h>
int main()
{
    long long int a,b,s;
    scanf("%lld %lld %lld",&a,&b,&s);
    if(a<0) a=0;
    if(b<0) b=0;
    if(s>=(a+b))
    {
        if( (s-(a+b))%2==0)
        {
            printf("Yes\n"); return 0;
        }
    }
    printf("No\n");
}

#include<stdio.h>
int main()
{
    long long a,b,s,x,y;
    scanf("%I64d %I64d %I64d",&a,&b,&s);
    if(a<0)
        a=0-a;
    if(b<0)
        b=0-a;

    x=a+b;
    if(s<x)
        printf("No");
    else
    {
        s=s-x;
        if(s%2==0)
            printf("Yes");
        else
            printf("No");
    }
    return 0;
}

#include<stdio.h>
#include<math.h>
int main()
{
    long int a,b,s;
    scanf("%ld%ld%ld",&a,&b,&s);
    if(s<(abs(a+b)-2))
    printf("No\n");
    else
    {
        if(s%2!=0)
        {
            if((abs(a+b))%2!=0)
            printf("Yes\n");
            else
            printf("No\n");
        }
        else
        {
            if((abs(a+b))%2==0)
            printf("Yes\n");
            else
            printf("No\n");
        }
    }
    return 0;
}

#include <stdio.h>

int main()
{
    int a,v,c,d,e,b,sum=0,sum1;

    scanf("%d %d %d",&a,&b,&c);

    if(a<0)
        a=-a;
     if(b<0)
        b=-b;
     sum=a+b;
     sum1=sum-c;
     if(sum1<0)
        sum1=-sum1;

     if(sum==c)
        printf("Yes\n");
     else if(sum1%2==0)
        printf("Yes\n");

      else
        printf("No\n");

    return 0;
}

#include <stdio.h>
int main()
{
    int n,i,j,a,b,c;
    scanf("%d %d %d",&a,&b,&c);
    if(c<(a+b)){
        printf("NO");
    }
    else if(c==(a+b)){
        printf("YES");
    }
    else{
        if((a+b)<0){
            printf("NO");
        }

        else if((a+b)%2==0 && c%2==0){
            printf("YES");
        }

        else if((a+b)%2!=0 && c%2!=0){
            printf("YES");
        }
        else{
            printf("NO");
        }
    }
    return 0;
}

#include<stdio.h>
#include<stdlib.h>
int main()
{
    long long n,m,k,t;
    scanf("%lld%lld%lld",&n,&m,&k);
    t=abs(m-n);
    if(t==k||abs(t-k)==2)
        printf("Yes\n");
    else
        printf("No\n");
    return 0;
}

#include<stdio.h>
#include<math.h>

int main(){
	int x,y,a;

	scanf("%d %d %d",&x,&y,&a);
	if(abs(a-(x+y)) % 2 || ((x+y) > a)){ puts("No"); return 0; }
	puts("Yes");

	return 0;
}

#include <stdio.h>
void isTrue(int a, int b, int s)
{
    int diff = s - (a+b);
    if(diff >= 0 && diff%2==0)
        {
            printf("yes\n");
        }
    else printf("No\n");
}
int main()
{
    int a,b,s;
    scanf("%d %d %d",&a,&b,&s);
    isTrue(a,b,s);
    return 0;
}