Problem Description

Line1 x. Line2 ops string. '+' means x++, '-' means x--. Print final x.

Input Format

Line1 x. Line2 ops.

Output Format

One integer final x.

Sample Test Case

Input:
10 ++-+--
Output:
10

Constraints

|ops|

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next