Problem Description

Given n integers, keep only positive numbers using async predicate. Print new length and the filtered list.

Input Format

Line1: n. Line2: n integers.

Output Format

Line1: m. Line2: m integers (or empty).

Sample Test Case

Input:
7 -1 2 0 5 -3 4 1
Output:
4 2 5 4 1

Constraints

1

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next