s=100,t;main(i){for(;~scanf("%d",&i);t=1)for(i*=t;t=i;s=t)i=s%i;t=!printf("%d",100/s);}