#include #include #include using namespace std; #define LL long long LL gcd(LL a,LL b){ return (b==0)?a:gcd(b,a%b); } LL calc(LL d){ LL res=0; LL up=1; LL down=1; for(LL i = 1; i <= d; i++){ up*=d-i+1; down*=i; LL k=gcd(up,down); up/=k; down/=k; if(i%3==2) res+=up/down; } return res; } int main() { LL N; cin>>N; LL d=2; LL prev=0; while(true){ LL now=calc(d); // cout<=N)break; prev+=now; d++; } int cnt=0; //printf("prev=%lld,d=%lld\n",prev,d); for(int bit=0;bit<(1<=0;i--){ int k=((((bit>>i)&1)==1)?5:3); cout<