
def  __magic_name__ (   __lowerCAmelCase	:						int		,  __lowerCAmelCase	:						int		,  __lowerCAmelCase	:						int							)			->   float:
				__lowerCamelCase    					=	(num_of_terms / 2) * (2 * first_term + (num_of_terms - 1) * common_diff)
				# formula for sum of series
				return total




def  __magic_name__ (   )			->   int:
				print(sum_of_series(1		,  1		,  10							)							)


if __name__ == "__main__":
					import doctest

					doctest.testmod()





import os




def  __magic_name__ (   )			->   str:
				__lowerCamelCase    					=	os.path.join(os.path.dirname(__lowerCAmelCase							)		,  '''num.txt'''							)
				with open(__lowerCAmelCase							) as file_hand:
								return str(sum(int(__lowerCAmelCase							) for line in file_hand							)							)[:10]


if __name__ == "__main__":
					print(solution())



