The program must accept N integer as the input. The program remove the trailing zeros for all the N integers.Then the program must print the smallest integer among the N modified integers as the output.

EXAMPLE INPUT/OUTPUT 1:

INPUT:

5

150 2000 50 8800 24

OUTPUT

2

EXAMPLE INPUT/OUTPUT 2:

INPUT:

4

10 19 457 1000000

OUTPUT

1


CODE:

#include<stdio.h>

int main() {
   int n,a,min;
   scanf("%d\n",&n);
   for(int i=0;i<n;i++)
   {
       scanf("%d ",&a);
    while(a%10==0)
    {
       a=a/10;
    }
    if(i==0)
    {
        min=a;
    }
    if(a<min)
    {
        min=a;
    }
   }
   printf("%d",min);
}