Welcome!

×

...or use your e-mail

Go back to Challenges list

Challenge

The Password Strength

In this challenge you will receive a string containing a password that the user is trying to set and you will have to make sure that password is valid and secure. The criterias are:
- At least six characters
- No white spaces
- At least one capital letter
- At least one number
- At least one symbol
- Only the following symbols are allowed: $ # - _ &

Input Format
Each test case contains a string with a password.

Output Format
For each test case output "Valid" if the password is valid and secure or "Invalid" if not.

Sample Inputs
mypassword123
#Some_Pass1#


Sample Outputs
Invalid
Valid

Memory Limit
512M


Sign Up or Login to solve this Code Challenge