Problem Description

Read n tokens. Each token can be: signed int, float (with dot), True/False, NONE, or a word. Count how many INT, FLOAT, BOOL, NONE, and WORD tokens and output counts in this order.

Input Format

First line n. Second line n tokens.

Output Format

One line: intCount floatCount boolCount noneCount wordCount.

Sample Test Case

Input:
8 10 2.5 True hello NONE -7 3.0 False
Output:
2 2 2 1 1

Constraints

1

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next