Array Plus Array


Submit solution

Points: 1
Time limit: 2.0s
Memory limit: 256M

Problem types
Allowed languages
Python

Write a program that reads two lists of integers.

Print the sum of all numbers in both lists.

You must use for loops.

Do not use map() or sum().

Input

The first line contains an integer, n.

The second line contains n integers.

The third line contains an integer, m.

The fourth line contains m integers.

Output

Output the sum of all numbers in both lists.

Sample Input

3
1 2 3
3
4 5 6

Sample Output

21

Comments

There are no comments at the moment.