#include <stdio.h>
int toggleFifthBit(int n) {
// Use XOR bitwise to solve this problem , according to XOR rule we can toggle
//bit in reg if that bit XOR with the bit of 1. Example: 1 XOR 1 = 0, 0 XOR 1 = 1
n = n ^ (1 << 5);
return n;
}
int main() {
int n;
scanf("%d", &n);
printf("%d", toggleFifthBit(n));
return 0;
}