#include <stdio.h>
#include <string.h>
#include <math.h>
int main(void){
FILE *in;
FILE *out;
const unsigned int BLOCK_SIZE = 3;
char block[BLOCK_SIZE];
in = fopen("input.txt", "rt");
if(in == NULL){ fputs("File error", stderr); return 1; }
out = fopen("output.txt", "wt");
if(out == NULL){ fputs("File error", stderr); return 1; }
while(!feof(in)){
memset(block, 0, sizeof(block));
if(fread(block, sizeof(char), BLOCK_SIZE, in) != 0){
fwrite(block, sizeof(char), BLOCK_SIZE, out);
//!!!!!!!!
for(int i = 0; i < BLOCK_SIZE; i++){
printf("%d", block[i]);
printf(" ");
}
printf("\n");
int mark = 0;
for(int i = 0; i < BLOCK_SIZE; i++){
mark += block[i]*((int)pow(255.0, (BLOCK_SIZE - 1 - i)*1.0));
}
printf("%d", mark);
printf("\n");
}
}
fclose(in);
fclose(out);
int p = 0;
scanf("%d", p);
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdHJpbmcuaD4KI2luY2x1ZGUgPG1hdGguaD4KCgppbnQgbWFpbih2b2lkKXsKICAgIEZJTEUgKmluOwogICAgRklMRSAqb3V0OwogICAgY29uc3QgdW5zaWduZWQgaW50IEJMT0NLX1NJWkUgPSAzOwogICAgY2hhciBibG9ja1tCTE9DS19TSVpFXTsKICAgIAogICAgaW4gPSBmb3BlbigiaW5wdXQudHh0IiwgInJ0Iik7CiAgICBpZihpbiA9PSBOVUxMKXsgZnB1dHMoIkZpbGUgZXJyb3IiLCBzdGRlcnIpOyByZXR1cm4gMTsgfQogICAgCiAgICBvdXQgPSBmb3Blbigib3V0cHV0LnR4dCIsICJ3dCIpOwogICAgaWYob3V0ID09IE5VTEwpeyBmcHV0cygiRmlsZSBlcnJvciIsIHN0ZGVycik7IHJldHVybiAxOyB9CiAgICAKICAgIHdoaWxlKCFmZW9mKGluKSl7CiAgICAgICAgbWVtc2V0KGJsb2NrLCAwLCBzaXplb2YoYmxvY2spKTsKICAgICAgICBpZihmcmVhZChibG9jaywgc2l6ZW9mKGNoYXIpLCBCTE9DS19TSVpFLCBpbikgIT0gMCl7CiAgICAgICAgICAgIGZ3cml0ZShibG9jaywgc2l6ZW9mKGNoYXIpLCBCTE9DS19TSVpFLCBvdXQpOwogICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAvLyEhISEhISEhCiAgICAgICAgICAgIGZvcihpbnQgaSA9IDA7IGkgPCBCTE9DS19TSVpFOyBpKyspewogICAgICAgICAgICAgICAgcHJpbnRmKCIlZCIsIGJsb2NrW2ldKTsKICAgICAgICAgICAgICAgIHByaW50ZigiICIpOwogICAgICAgICAgICB9CiAgICAgICAgICAgIHByaW50ZigiXG4iKTsKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgIGludCBtYXJrID0gMDsKICAgICAgICAgICAgZm9yKGludCBpID0gMDsgaSA8IEJMT0NLX1NJWkU7IGkrKyl7CiAgICAgICAgICAgICAgICBtYXJrICs9IGJsb2NrW2ldKigoaW50KXBvdygyNTUuMCwgKEJMT0NLX1NJWkUgLSAxIC0gaSkqMS4wKSk7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgcHJpbnRmKCIlZCIsIG1hcmspOwogICAgICAgICAgICBwcmludGYoIlxuIik7CiAgICAgICAgfSAgICAgICAgICAgICAgICAgICAgIAogICAgfQogICAgCiAgICBmY2xvc2UoaW4pOwogICAgZmNsb3NlKG91dCk7CgogICAgaW50IHAgPSAwOwogICAgc2NhbmYoIiVkIiwgcCk7Cn0=