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