Write a program that reads a sequence of numbers of undefined size and prints the largest number and the position of its first occurrence. The position starts from 1.
Note that numbers can be negative.
You can stop typing in the console in IDEA by pressing Ctrl+D after you have entered the last number and hit Enter.