#include <stdio.h>
#include <math.h>
#define MAXLEN 100
char toC(int x){
char res = 0;
int i;
for(i = 0; i < 8; ++i) res |= x & (1<<i);
return res;
}
int main(int argc, char** argv){
int i, j, k;
int f[1<<16] = {};
for(i = 1; i < argc; ++i){
FILE
*fp
= fopen(argv
[i
], "r"); char str[MAXLEN];
for(j = 0; str[j]; ++j){
int x = 0;
for(k = 0; k < 8; ++k) x |= str[j] & (1<<k);
if(str[j] < 0){
x <<= 8;
++j;
for(k = 0; k < 8; ++k) x |= str[j] & (1<<k);
}
f[x] = 1;
}
}
for(i = 1; i < (1<<16); ++i){
if(f[i] && i != '\n'){
}
}
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxtYXRoLmg+CgojZGVmaW5lIE1BWExFTiAxMDAKCmNoYXIgdG9DKGludCB4KXsKICAgIGNoYXIgcmVzID0gMDsKICAgIGludCBpOwogICAgZm9yKGkgPSAwOyBpIDwgODsgKytpKSByZXMgfD0geCAmICgxPDxpKTsKICAgIHJldHVybiByZXM7Cn0KCmludCBtYWluKGludCBhcmdjLCBjaGFyKiogYXJndil7CiAgICBpbnQgaSwgaiwgazsKICAgIGludCBmWzE8PDE2XSA9IHt9OwogICAgZm9yKGkgPSAxOyBpIDwgYXJnYzsgKytpKXsKICAgICAgICBGSUxFICpmcCA9IGZvcGVuKGFyZ3ZbaV0sICJyIik7CiAgICAgICAgY2hhciBzdHJbTUFYTEVOXTsKICAgICAgICBmZ2V0cyhzdHIsIE1BWExFTiwgZnApOwogICAgICAgIGZvcihqID0gMDsgc3RyW2pdOyArK2opewogICAgICAgICAgICBpbnQgeCA9IDA7CiAgICAgICAgICAgIGZvcihrID0gMDsgayA8IDg7ICsraykgeCB8PSBzdHJbal0gJiAoMTw8ayk7CiAgICAgICAgICAgIGlmKHN0cltqXSA8IDApewogICAgICAgICAgICAgICAgeCA8PD0gODsKICAgICAgICAgICAgICAgICsrajsKICAgICAgICAgICAgICAgIGZvcihrID0gMDsgayA8IDg7ICsraykgeCB8PSBzdHJbal0gJiAoMTw8ayk7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgZlt4XSA9IDE7CiAgICAgICAgfQogICAgfQogICAgZm9yKGkgPSAxOyBpIDwgKDE8PDE2KTsgKytpKXsKICAgICAgICBpZihmW2ldICYmIGkgIT0gJ1xuJyl7CiAgICAgICAgICAgIGlmKGkgPj4gOCkgcHV0Y2hhcih0b0MoaT4+OCkpOwogICAgICAgICAgICBwcmludGYoIiVjXG4iLCB0b0MoaSYweEZGKSk7CiAgICAgICAgfQogICAgfQp9