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: ");
        a = input.nextInt();
        do { 
                if (a > max) {
                max = a;
                count =1;
                	
                } else if (a == max) { 
                count++; 
                } 
                a = input.nextInt();
        } 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); 
        } 
}