Problem Description

Read n tokens. If token is a valid signed integer, add it to sum. Otherwise ignore it. Output the sum.

Input Format

First line n. Second line n tokens.

Output Format

One integer sum.

Sample Test Case

Input:
6 10 x -3 4.5 7 +2
Output:
9

Constraints

1

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next