/*
#include <stdio.h>
int main()
{
int a;
scanf("%d",&a);
printf("%lld",(long long int)a+1);
}
*/
/*
#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("%.2f\n",(float)a/b);
}
*/
/*
#include <stdio.h>
int main()
{
int a, b, c;
scanf("%d %d %d",&a,&b,&c);
printf("%d\n",a+b+c);
printf("%.1f",(float)(a+b+c)/3);
}
*/
/*
#include<stdio.h>
int main() {
int a, b;
scanf("%d %d", &a, &b);
printf("%d", a>b);
}
*/
/*
#include <stdio.h>
int main(){
int a, b;
scanf("%d %d",&a, &b);
printf("%d",a==b);
}
*/
/*
#include <stdio.h>
int main(){
int a, b;
scanf("%d %d",&a, &b);
printf("%d",a<=b);
}
*/
#include <stdio.h>
int main(){
int a, b;
scanf("%d %d",&a, &b);
printf("%d",a!=b);
}