#include using namespace std; #define MAX 10000 int takeSpeed(int n){ int i(1), c(0), tmp(0); while(n > 0){ c += n%2; } return c; } int main(){ int N, pos(1), speed(0), c=1; cin >> N; int check[N+1]; for(int i=0;i N)speed *= -1; pos += speed; c++; } cout << c << endl; return 0; }