//#include <stdio.h>//int main()//{// int f,j;// scanf("%d %d",&f,&j);// printf("%d",f!=j);// return 0;//}#include <stdio.h>int main(){ int f,j; scanf("%d %d",&f,&j); printf("%d",f||j); return 0;}