#include <bits/stdc++.h>
using namespace std;
int main() {
long long N;
int a=0;
cin>>N;
N--;
vector<short> A;
if(N>=5){
while(N>=5){
a=1;
A.push_back(N%5);
N=N/5;
}
}
cout<<N*2;
if(a=1){
a=A.size();
for(int i=0;i<a;i++){
cout<<A[a-i-1]*2;
}
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: