Problem Description

One line has pairs like key:value separated by spaces. Build dictionary and output how many pairs were parsed and sum of all integer values.

Input Format

One line: pairs.

Output Format

One line: count sum.

Sample Test Case

Input:
a:10 b:-2 c:5
Output:
3 13

Constraints

Total characters

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next