Problem Description

A JSON array is provided in one line, like [1,2,true,null]. Count how many numbers, strings, booleans, and null values. Output counts in order: num str bool null.

Input Format

One line JSON array.

Output Format

One line: num str bool null.

Sample Test Case

Input:
[1,2,true,null,false,3]
Output:
3 0 2 1

Constraints

JSON length

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next