#include<bits/stdc++.h> using namespace std; int ans=1; void funkccf(int front) { if(front!=1) { for(int i=floor(front/=2);i>=1;i--) { ans++; funkccf(i); } } } int main() { int n; cin>>n; funkccf(n); cout<<ans; }
TLE25分