#include <stdio.h>
int main() {
int L, C;
scanf("%d", &L);
scanf("%d", &C);
if(C%2==0){
if(L%2==0){
printf("1");
}
else{
printf("0");
}
}
else{
if(L%2==0){
printf("0");
}
else{
printf("1");
}
}
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: