#include <iostream>
using namespace std;

int main() {
    int x;
    cin>>x;
    int y=(x^x^x^x);
    cout<<y;
}
// 64 位输出请用 printf("%lld")