#include<bits/stdc++.h> using namespace std; int main(){ long long n; long long x; cin>>n; string s; while(n!=0){ x=n%8; char c=x+'0'; n=n/8; s=c+s; } if(s==""){ cout<<0; } else{ cout<<s; } } /************************************************************** Problem: 1288 User: luyanchen Language: C++ Result: Accepted Time:8 ms Memory:2072 kb ****************************************************************/