p=55;c['><'];n;main(t){for(;read(0,&n,1);p++)putchar(c[p+1]=n-35?n:c[p]>32?c[p]:c[p-50]>32?c[p-50]:t+++48);}