int finished=9;
finished=fread(&p,sizeof(struct office),1,f);
finished=fread(&p,sizeof(struct office),1,f);
finished=fread(&p,sizeof(struct office),1,f);
finished=fread(&p,sizeof(struct office),1,f);
finished=fread(&p,sizeof(struct office),1,f);
finished=fread(&p,sizeof(struct office),1,f);
finished=fread(&p,sizeof(struct office),1,f);
finished=fread(&p,sizeof(struct office),1,f);
finished=fread(&p,sizeof(struct office),1,f);
finished=fread(&p,sizeof(struct office),1,f);
finished=fread(&p,sizeof(struct office),1,f);
finished=fread(&p,sizeof(struct office),1,f);
finished=fread(&p,sizeof(struct office),1,f);
finished=fread(&p,sizeof(struct office),1,f);
printf("%d\n",finished);