Problem Description

Given q lines (CALL), print counter after each call using a static variable inside function.

Input Format

First line q. Next q lines: CALL.

Output Format

q lines counts.

Sample Test Case

Input:
4 CALL CALL CALL CALL
Output:
1 2 3 4

Constraints

q

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next