Hard
Annotate the Peak
Plot the values (x = 0, 1, 2, ...) and add a text annotation
peak at the highest point with ax.annotate. Print the annotation text and its xy position as two ints.Input
One line of integers.
Output
Two lines.
Sample 1
Input
3 9 2 5
Output
peak 1 9
Sample 2
Input
7
Output
peak 0 7
Output appears here