int cteni(const char * jmeno)
{
    FILE *f = fopen(jmeno, "rb");
    if(!f) return EOF;
    int i;
    while(fread(&i, sizeof(int), 1, f) == 1)
    {
        printf("%d\n", i);
    }
    fclose(f);
    return 0;
}
