#include int gcd(int x,int y){ int z; while(y){ z = x % y; x = y; y = z; } return x; } int lcm(int x,int y){ int z; z = gcd(x,y); return x*y/z; } int main(void) { int n,i,a,t = 1; scanf("%d",&n); for(i = 1;i <= n;i++){ scanf("%d",&a); a = gcd(100,a); a = 100/a; t = lcm(a,t); } printf("%d\n",t); return 0; }