/*#include <stdio.h>int main(){ int a; scanf("%d",&a); printf("%o",a); return 0;}#include <stdio.h>int main(){ int a; scanf("%o",&a); printf("%d",a); return 0;9}*/#include<stdio.h>int main(){ int a,b; scanf("%d %d",&a,&b); printf("%d", !(a||b)); return 0;}