
import java.util.Scanner;

public class q1 {

    public static void main( String args[]) {
    	
    	
    	int max;
    	int count=1;
    	int a;
        
  	Scanner input = new Scanner(System.in);
    do{
    	
    		
     	System.out.print("Enter numbers: ");
    	a=input.nextInt();
    	
    	max=a; 
    
    	
    	if (a>max){
    		
    	  max=a;
    	  count=count;
    
    	}
    	
    	 else if(a==max){
    		
    		count=count++;
    	}
    	
    }while(a != 0);
    
    		
    	
    System.out.printf("The largest number is %d",max);
    
   
    System.out.printf("\nThe occurrence count of the largest number is %d",count );		
    		
    	
    }
    
    
}