#include #include #include #define endl '\n' using namespace std; typedef long long ll; ll n,k,i,j,p,q,l,br; map b; int main() { freopen("cheating.in", "r", stdin); freopen("cheating.out", "w", stdout); ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); cin>>n>>k>>l; if(k==1) { cout<n)p-=n; br++; if(b[p]==0) { b[p] = 1; } else { break; } if(p==l) { cout<