Stampa l'ultima riga

Ti viene chiesto di stampare l'ultima riga del file.

L'input del programma contiene una singola riga - il nome del file.

L'output del programma deve contenere una singola riga - l'ultima riga del file. È garantito che il file contenga almeno una riga.

Input

input.txt

Output

input.txt

hello this is
some file content

some file content

Input

single.txt

Output

single.txt

this file has only 1 line

this file has only 1 line

Input

many.txt

Output

many.txt

this file
has

many
many lines

many lines

Constraints

Time limit: 2 seconds

Memory limit: 512 MB

Output limit: 1 MB

To check your solution you need to sign in
Sign in to continue