Problem Description

Read n tokens (may contain junk). Count how many tokens are valid integers and output the count.

Input Format

First line n. Second line has n tokens.

Output Format

One integer count.

Sample Test Case

Input:
6 10 x -3 4.5 0 +7
Output:
4

Constraints

1

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next