#include<bits/stdc++.h>using namespace std;int main(){ int n; while(cin>>n,n>=0) printf("%o\n",n); cout<<"-1"<<endl;}
#includeusing namespace std;int main(){ int n; while(cin>>n,n>=0) printf("%o\n",n); cout<<"-1"<}
這是C++ ANS吧?