import java.util.*;

class testaArray
{
  int [] v = new int[5];
  
  void leArray()
  {
    Scanner sc = new Scanner(System.in);
    int i;
    
    for (i=0; i<v.length; i++)
      v[i]=sc.nextInt();
    
    System.out.println();
  }
 
  void imprimeArray()
  {
    int i;
    
    for (i=0; i<v.length; i++)
      System.out.print(v[i]+" ");
    
    System.out.println();
  }
    
  int busca(int x)
  {
    int i, i0=-1;
    boolean achou;
    
    achou = false;
    for(i=0; i < v.length; i++)
      if (x == v[i]){
      i0 = i;
      achou = true;
    }
   
    if (achou)
      return(i0);
    else
      return(-1);
  }
  
  void selecao()
  {
    int i, j, tmp, min;
    
    for(i=0; i<v.length-1; i++){
      min = i;
      for(j=i+1; j<v.length; j++)
        if(v[min] > v[j])
        min = j;
      tmp = v[min];
      v[min] = v[i];
      v[i] = tmp;
    }
  }
      
  
}