/*
#include <stdio.h>
int main()
{
long long int a;
scanf("%c",&a);
printf("%c",a+1);
return 0;
}
*/
/*
#include <stdio.h>
int main()
{
int a, b;
scanf("%d %d",&a, &b);
printf("%d",a/b);
return 0;
}
*/
/*
#include <stdio.h>
int main()
{
int a, b;
scanf("%d %d",&a, &b);
printf("%d",a%b);
return 0;
}
*/
/*
#include <stdio.h>
int main()
{
long long int a;
scanf("%lld ",&a);
printf("%lld",a+1);
return 0;
}
*/
/*
#include<stdio.h>
int main()
{
int a, b;
scanf("%d %d",&a, &b);
printf("%d\n",a+b);
printf("%d\n",a-b);
printf("%d\n",a*b);
printf("%d\n",a/b);
printf("%d\n",a%b);
printf("%.2lf\n",(double)a/b);
return 0;
}
*/
/*
#include <stdio.h>
int main()
{
int a, b;
scanf("%d %d",&a, &b);
printf("%d+%d=%d\n",a,b,a+b);
printf("%d-%d=%d\n",a,b,a-b);
printf("%d*%d=%d\n",a,b,a*b);
printf("%d/%d=%d\n",a,b,a/b);
return 0;
}
*/
/*
#include <stdio.h>
int main()
{
double a, b;
scanf("%lf %lf",&a, &b);
printf("%.2lf",(double)a*b);
return 0;
}
*/
/*
#include <stdio.h>
int main()
{
double a, b;
scanf("%lf %lf",&a, &b);
printf("%.1lf",(double)a*b/2);
return 0;
}
*/
/*
#include <stdio.h>
int main()
{
int a;
scanf("%d",&a);
printf("%d",a*24);
return 0;
}
*/
/*
#include <stdio.h>
int main()
{
int a, b;
scanf("%d",&a);
printf("%d",!a);
return 0;
}
*/
/*
#include <stdio.h>
int main()
{
int a, b;
scanf("%d %d",&a, &b);
printf("%d",a>b);
return 0;
}
*/
/*
#include <stdio.h>
int main()
{
int a, b;
scanf("%d %d",&a, &b);
printf("%d",a==b);
return 0;
}
*/
/*
#include <stdio.h>
int main()
{
int a, b;
scanf("%d %d",&a, &b);
printf("%d",a<=b);
return 0;
}
*/
/*
#include <stdio.h>
int main()
{
int a, b;
scanf("%d %d",&a, &b);
printf("%d",a!=b);
return 0;
}
*/
/*
#include <stdio.h>
int main()
{
int a, b;
scanf("%d %d",&a, &b);
printf("%d",a&&b);
return 0;
}
*/
/*
#include <stdio.h>
int main()
{
int a, b;
scanf("%d %d",&a, &b);
printf("%d",a||b);
return 0;
}
*/
#include <stdio.h>
int main()
{
int a, b;
scanf("%d %d",&a, &b);
printf("%d",a||b);
return 0;
}