#K5771. Random Password Generator

    ID: 30481 Type: Default 1000ms 256MiB

Random Password Generator

Random Password Generator

In this problem, you are required to generate a random password that meets all of the following criteria:

  1. The password must be at least 8 characters long.
  2. It must contain at least one uppercase letter ((A-Z)).
  3. It must contain at least one lowercase letter ((a-z)).
  4. It must contain at least one digit ((0-9)).
  5. It must contain at least one special character from the set: ! @ # $ % ^ & * ( ) - _ + =.

Your program should read an integer from standard input which is used as the seed for generating the password. The password should be printed to standard output. The use of the input seed ensures that the output is deterministic and can be used for testing.

inputFormat

The input consists of a single integer which will be used as the seed for the random number generator. This input is given via standard input (stdin).

outputFormat

Output a single line containing the generated password that meets all the required criteria. The output should be printed to standard output (stdout).## sample

1
wLX$7I7D