#include <stdio.h>
#include <stdint.h>
int safe_compare(int8_t a, uint8_t b) {
// Your logic here
uint8_t signedBit = (a >> 7);
if (signedBit) {
return 1;
} else {
return (a < b);
}
return 0;
}
int main() {
int8_t a;
uint8_t b;
scanf("%hhd %hhu", &a, &b);
printf("%d", safe_compare(a, b));
return 0;
}