#include <stdio.h>
#include <string.h>
int main(void){
FILE *in;
FILE *out;
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)); //Îáíóëÿåì áëîê
fread(block, sizeof(block), BLOCK_SIZE, in);
fwrite(block, sizeof(block), BLOCK_SIZE, out);
//!!!!!!!!
for(int i = 0; i < BLOCK_SIZE; i++){
printf("%c", block[i]);
printf(" ");
}
printf("\n");
}
fclose(in);
fclose(out);
int p;
scanf("%d", p);
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdHJpbmcuaD4KCgppbnQgbWFpbih2b2lkKXsKICAgIEZJTEUgKmluOwogICAgRklMRSAqb3V0OwogICAgdW5zaWduZWQgaW50IEJMT0NLX1NJWkUgPSAzOwogICAgY2hhciBibG9ja1tCTE9DS19TSVpFXTsKICAgIAogICAgaW4gPSBmb3BlbigiaW5wdXQudHh0IiwgInJ0Iik7CiAgICBpZihpbiA9PSBOVUxMKXsgZnB1dHMoIkZpbGUgZXJyb3IiLCBzdGRlcnIpOyByZXR1cm4gMTsgfQogICAgCiAgICBvdXQgPSBmb3Blbigib3V0cHV0LnR4dCIsICJ3dCIpOwogICAgaWYob3V0ID09IE5VTEwpeyBmcHV0cygiRmlsZSBlcnJvciIsIHN0ZGVycik7IHJldHVybiAxOyB9CiAgICAKICAgIHdoaWxlKCFmZW9mKGluKSl7CiAgICAgICAgICAgICAgICAgICAgbWVtc2V0KGJsb2NrLCAwLCBzaXplb2YoYmxvY2spKTsgICAgIC8vw47DocOtw7PDq8O/w6XDrCDDocOrw67DqgogICAgICAgICAgICAgICAgICAgIGZyZWFkKGJsb2NrLCBzaXplb2YoYmxvY2spLCBCTE9DS19TSVpFLCBpbik7CiAgICAgICAgICAgICAgICAgICAgZndyaXRlKGJsb2NrLCBzaXplb2YoYmxvY2spLCBCTE9DS19TSVpFLCBvdXQpOwogICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgIC8vISEhISEhISEKICAgICAgICAgICAgICAgICAgICBmb3IoaW50IGkgPSAwOyBpIDwgQkxPQ0tfU0laRTsgaSsrKXsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIHByaW50ZigiJWMiLCBibG9ja1tpXSk7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICBwcmludGYoIiAiKTsKICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgICAgICAgICAgICBwcmludGYoIlxuIik7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgIH0KICAgIAogICAgZmNsb3NlKGluKTsKICAgIGZjbG9zZShvdXQpOwogICAgCiAgICBpbnQgcDsKICAgIHNjYW5mKCIlZCIsIHApOwp9