import java.util.Scanner; 
 
public class q1 { 
 
        public static void main(String args[]) { 
        int max; 
        int count = 1; 
        int a = 0; 
        Scanner input = new Scanner(System.in); 
        max = a;
        
        System.out.print("Enter numbers: ");
                
        do { 
        	 
                a = input.nextInt();
                  
                if (a > max) { 
                max = a; 
                	
                } else if (a == max) { 
                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%n", count); 
        } 
}