/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author felix
 */
public class maximo {
    
    static public int max(int a[], int N) {
        if(N==0) return a[N];
        else {
            int y = max(a, N-1);
            return (y > a[N] ? y : a[N]);
        }
    }
    
    static public void main(String args[]) {
        int a[] = {15, 3, -1, 10, 0 , 4, 5};
        
        System.out.println(max(a, a.length-1));
    }

}
