2017-10-27 09:19:58 +07:00
|
|
|
'''
|
|
|
|
Problem Statement:
|
|
|
|
Work out the first ten digits of the sum of the N 50-digit numbers.
|
|
|
|
'''
|
2017-11-25 10:23:50 +01:00
|
|
|
from __future__ import print_function
|
2017-10-27 09:19:58 +07:00
|
|
|
|
|
|
|
n = int(input().strip())
|
|
|
|
|
|
|
|
array = []
|
|
|
|
for i in range(n):
|
|
|
|
array.append(int(input().strip()))
|
|
|
|
|
|
|
|
print(str(sum(array))[:10])
|
|
|
|
|