Problem Description

Date string is provided as dd-mm-yyyy. Output VALID if it is a real date (with leap year rules) else INVALID.

Input Format

One line date.

Output Format

VALID or INVALID.

Sample Test Case

Input:
29-02-2024
Output:
VALID

Constraints

1600

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next