#include <iostream>
#include "vector"
using namespace std;
int main() {
int a;
while (cin >> a ) { // 注意 while 处理多个 case
string ans;
while (a != 0) {
ans = to_string(a % 8) + ans;
a /= 8;
}
cout << ans << endl;
}
}
// 64 位输出请用 printf("%lld")

京公网安备 11010502036488号