#C476. Valid Python Identifier

    ID: 48333 Type: Default 1000ms 256MiB

Valid Python Identifier

Valid Python Identifier

Given a string s, determine whether it is a valid Python identifier. A valid identifier must satisfy the following conditions:

  • The first character must be a letter (a-z or A-Z) or an underscore (_).
  • Each subsequent character must be a letter, a digit (0-9), or an underscore.
  • The identifier must not be one of the reserved Python keywords. In other words, if \( s \) is one of the keywords (for example, False, class, return, etc.), then it is not valid.

You are to read the input string from standard input and output True if it meets the above conditions; otherwise, output False. Note that if the input is empty, it is considered invalid.

inputFormat

The input consists of a single line containing the string s. The string may be empty.

outputFormat

Output a single line containing either True or False (without quotes) on standard output.

Note: The output should exactly match the expected string.

## sample
_myVar1
True