#!/usr/bin/python3.8
from functools import reduce

def calc_str(mstr):
	ml=mstr.split(",")
	try:
		nl=[eval(x) for x in ml]
	except Exception as e:
		print (str(e))
		return None
	return reduce(lambda x,y:x+y,nl)

def main():
	mstr=input('Δώσε εγγραφή:')
	ns=calc_str(mstr)
	print (ns)

if __name__=="__main__":
	main()
