#include<bits/stdc++.h> using namespace std; int n; int main(){ cin>>n; cout<<(n>>16)+(n<<16); return 0; }