LearnPy Hub
← Regular Expressions problems
Medium

Valid Phone Number

A Bangladeshi mobile number has 11 digits, starts with 01 and the third digit is 3–9. Read numbers until END and print valid or invalid for each.

Input

Lines, then END.

Output

One line each.

Sample 1

Input
01712345678
0171234567
02712345678
END
Output
valid
invalid
invalid

Sample 2

Input
01912345678
END
Output
valid
solution.py
Output appears here
Valid Phone Number · Python practice problem · LearnPy Hub