#include <iostream>
#include <string>
using namespace std;
int main() {
string number = "2443"; //jakas liczba w systemie 8 zalozmy
int decNumber = 0; //tu bedzie wynik
for(int i=0; i<number.size(); i++)
decNumber = (decNumber * 8) + (number[i] - '0');
cout << decNumber << endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CglzdHJpbmcgbnVtYmVyID0gIjI0NDMiOyAvL2pha2FzIGxpY3piYSB3IHN5c3RlbWllIDggemFsb3pteQoJaW50IGRlY051bWJlciA9IDA7IC8vdHUgYmVkemllIHd5bmlrCglmb3IoaW50IGk9MDsgaTxudW1iZXIuc2l6ZSgpOyBpKyspCgkJZGVjTnVtYmVyID0gKGRlY051bWJlciAqIDgpICsgKG51bWJlcltpXSAtICcwJyk7Cgljb3V0IDw8IGRlY051bWJlciA8PCBlbmRsOwoJcmV0dXJuIDA7Cn0=