Problem Description

First line n, then n lines each should be a JSON number. Sum valid numbers. Count how many lines were bad JSON or not a finite number. Print: sum badCount.

Input Format

Line1: n. Next n lines: JSON number.

Output Format

One line: sum badCount.

Sample Test Case

Input:
5 1 2 bad 3 4
Output:
10 1

Constraints

1

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next