#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int main()
{
clock_t t_start,t_stop;
float seconds;
FILE *f,*g;
char c;
int ct=0;
t_start=clock();
f=freopen("convertor.in","rb",stdin);
g=freopen("convertor.out","w",stdout);
fread(&c,sizeof(char),1,f);
while(c!='}')
{
if(c=='\"')
{
ct++;
}
else
{
if(ct==1)
{
fprintf(g,"%c",c);
}
else
if(c==',')
{
fprintf(g,"%c",c);
ct=0;
}
}
fread(&c,sizeof(char),1,f);
}
fprintf(g,"%c\n",',');
fseek(f,0,SEEK_SET);
fread(&c,sizeof(char),1,f);
ct=0;
while(c!=']')
{
if(c=='\"')
ct++;
else
{
if(c==',' && ct)
{
ct=0;
fprintf(g,"%c",c);
}
if(c=='}')
{
fprintf(g,"%c\n",',');
ct=0;
}
if(ct==2)
if(c<='9' && c>='0')
fprintf(g,"%c",c);
if(ct==3)
fprintf(g,"%c",c);
}
fread(&c,sizeof(char),1,f);
}
fclose(g);
fclose(f);
t_stop=clock();
seconds=((float)(t_stop-t_start))/CLOCKS_PER_SEC;
printf("%f\n",seconds);
return 0;
}