#include<stdio.h> int main() { int a, x, y; scanf("%x,%d,%d", &a, &x, &y); printf("%x", a & ~((1 << x) | (1 << y - 2)) | (3 << y - 1)); return 0; }