import std.stdio;
import std.conv;
import std.string;

int main()
{
    string oct1="01234567"c;
    string oct2="01235789"c;
    char[] buf;
    //while (stdin.readln(buf)!='0'){
    buf=chomp(buf).dup;
    int num=to!(int)(buf);
    auto octnum=octal!(num);
	writeln();
//}
    return 0;
}