PROGRAMMING:Calculate the number of times the maximum occurs
Calculates the number of times the maximum value appears in a one-dimensional array.
###Input format:
Input n in one line (n < = 1000, representing the size of the array), and input n integers in the next line, which are the elements of one-dimensional array.
###Output format:
Output the maximum value and the number of occurrences.
###Input example:
Here is a set of inputs. For example:
```in
four
4 2 2 4
```
###Output example:
The corresponding output is given here. For example:
```out
4 2
```
answer:If there is no answer, please comment
###Input format:
Input n in one line (n < = 1000, representing the size of the array), and input n integers in the next line, which are the elements of one-dimensional array.
###Output format:
Output the maximum value and the number of occurrences.
###Input example:
Here is a set of inputs. For example:
```in
four
4 2 2 4
```
###Output example:
The corresponding output is given here. For example:
```out
4 2
```
answer:If there is no answer, please comment