Asynchronous parity check of a number

TypeScript Easy async

Task «Asynchronous parity check of a number»

Write an asynchronous function `checkEven` that takes an integer and returns a Promise that resolves with the string 'even' if the number is even, and 'odd' if it is odd. Use setTimeout to simulate a delay of 1 second. Input data is provided via stdin as a single number. Output the result of the function.

Input Format

One integer N (-1000 ≤ N ≤ 1000).

Output Format

String 'even' or 'odd'.

Examples

Example 1

INPUT
4
OUTPUT
even

Example 2

INPUT
7
OUTPUT
odd
main.ts