t,b;main(a){for(;read(0,&t,1);b=t>32?b?9:t-48:(a*=b-1,0));putchar(a-1?a<1?83:80:69);}