import java.io.*; import java.util.*; public class Solution { static int maxElement(int A[],int n){ int temp=0; for(int i=0;iA[j]){ temp=A[i]; } } } return temp; } public static void main(String[] args) { /* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution. */ Scanner in = new Scanner(System.in); int n=in.nextInt(); int A[]=new int[n]; for(int i=0;itemp){ temp=A[i]; } } int count=0; for(int i=0;i