#include <stdio.h>


int smallest(int arr[], int arr_size)
{
  int smallest;
  smallest = arr[0];



  int i;
  for (i = 1; i < arr_size; i++)
    {

      if (arr[i] < smallest)
	{
	  smallest = arr[i];
	}
    }
  return smallest;
}

int main ()
{
  
  int arr[] = {6789,65,45,25,852,69,34,478,32};

  int arr_size = sizeof(arr) / sizeof(int);

  int ret = smallest(arr, arr_size);

  printf("%d\n", ret);

  return 0;
}
