#include <stdio.h>
int toggleFifthBit(int n) {
// Write your code here
/* Xor operation is ideal in toggling a bit */
/* Its truth table : 1 ^ 0 = 1, 1 ^ 1 = 0 */
n ^= (1 << 5);
return n;
}
int main() {
int n;
scanf("%d", &n);
printf("%d", toggleFifthBit(n));
return 0;
}