Problem Description

Read n tokens. Each token can be decimal like 15, binary like 0b1010, octal like 0o12, or hex like 0xFF. Tokens can also have a leading '-' sign. Convert all to integer and output the sum.

Input Format

First line n. Second line n tokens.

Output Format

One integer sum.

Sample Test Case

Input:
4 0b1010 -0x1 12 0o7
Output:
28

Constraints

1

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next