LearnPy Hub
← Modules & the Standard Library problems
Medium

Chain Several Lists

Read n lines of numbers. Use itertools.chain to go through all numbers as one sequence and print how many there are and their total.

Input

n, then n lines.

Output

One line.

Sample 1

Input
2
1 2
3 4 5
Output
5 15

Sample 2

Input
1
9
Output
1 9
solution.py
Output appears here
Chain Several Lists · Python practice problem · LearnPy Hub