W,Z,B = map(int,input().split(",")) point = round((W+Z)*(B+1),0) print(point)