LearnPy Hub
← File Handling problems
Easy

Largest Number in a File

Read integers on one line and write each to n.txt on its own line. Read the file back and print the largest number.

Input

Integers separated by spaces.

Output

One integer.

Sample 1

Input
3 9 2
Output
9

Sample 2

Input
5
Output
5
solution.py
Output appears here
Largest Number in a File · Python practice problem · LearnPy Hub