#include <stdio.h>
#include <math.h>
int main()
{
int octal = 375, reminder, i = 0, decimal = 0, pos = 0;
while(octal != 0) {
decimal = decimal + (octal % 10) * pow(8, pos);
pos++;
octal = octal / 10;
}
printf("%d", decimal);
return 0;
}
/*
run:
253
*/