#include <stdio.h> int main() { int N; scanf("%d", &N); N ^= (1 << 5); // Toggle the 5th bit (0-based index) printf("%d\n", N); return 0; }
Test Cases
Test Results
Input
8
Expected Output
40