The largest before a negative
Task
The program keeps reading whole numbers (each on its own line) until a negative number comes - that one does not count and nothing more is read. Then it prints how many non-negative numbers were read and the largest of them:
If the very first number is negative, it prints only Počet: 0.
Examples
Input
5 12 0 7 -1
Expected output
Počet: 4 Najväčšie: 12
After you submit, 5 hidden tests will also check your solution: negative straight away, a single zero, equal numbers, numbers after the negative are not read, the largest at the end.
You need to know
Python starts the first time you run code.
Ctrl+Enter runs the program. Tab indents. Press Esc, then Tab, to leave the editor.
Input (stdin)
Each line = one call to input().
Output
Hints
Try it yourself first. Each hint reveals a little more - and lowers the reward a little.
Signed out, hints are free - but no XP is awarded either.
Solution
The solution unlocks after the last hint.