2018-10-19 07:48:28 -05:00
|
|
|
'''
|
|
|
|
|
Problem Statement:
|
|
|
|
|
Work out the first ten digits of the sum of the N 50-digit numbers.
|
|
|
|
|
'''
|
|
|
|
|
from __future__ import print_function
|
|
|
|
|
|
2018-10-20 14:45:08 -05:00
|
|
|
n = int(input().strip())
|
2018-10-19 07:48:28 -05:00
|
|
|
|
|
|
|
|
array = []
|
|
|
|
|
for i in range(n):
|
2018-10-20 14:45:08 -05:00
|
|
|
array.append(int(input().strip()))
|
2018-10-19 07:48:28 -05:00
|
|
|
|
|
|
|
|
print(str(sum(array))[:10])
|
|
|
|
|
|