Given the configuration of super-over, Find whether the given configuration in valid or invalid.
Allowed configurations are:
[runs(0 or 1 or 2 or 3 or 4 or 6)]
[Wd or 1Wd or 2Wd or 3Wd or 4Wd]
[Nb or 1Nb or 2Nb or 3Nb or 4Nb or 6Nb]
[1B or 2B or 3B or 4B]
[1LB or 2LB or 3LB or 4B]
[W or 1W or 2W or 3W]
Input Format
Verdict of each ball separated by space
Output Format
‘Valid’, if it’s valid over configuration and ‘Invalid’, if it’s invalid configuration
Constraints
No need