#include <stdio.h> int main() { int N; scanf("%d", &N); N ^= (1 << 5); printf("%d\n", N); return 0; }