Problem Description

Given n integers. Create promise for each: resolve if x is even, reject if x is odd. Use allSettled and print okCount failCount.

Input Format

Line1: n. Line2: n integers.

Output Format

Two integers: ok fail.

Sample Test Case

Input:
6 1 2 3 4 5 6
Output:
3 3

Constraints

1

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next