#include<bits/stdc++.h> using namespace std; int f(int x){ if(x<0) return -x; return f(x-f(x-1))/2; } int main(){ cout<<f(3); return 0; }