#C8590. Email Address Validation

    ID: 52589 Type: Default 1000ms 256MiB

Email Address Validation

Email Address Validation

You are given a single email address as input. Your task is to determine if the email address is valid based on the following criteria:

  • The email must contain exactly one '@' symbol.
  • The local part (the part before '@') must be non-empty and consist of only alphanumeric characters (i.e. letters and digits).
  • The domain part (the part after '@') must be non-empty, contain at least one dot ('.'), and the dot cannot be the first or last character of the domain.
  • The domain part may only consist of alphanumeric characters and dots.
  • The email address is considered case-insensitive.

If all the conditions are met, print true; otherwise, print false.

Note: Your program should read from standard input and write to standard output.

inputFormat

The input consists of a single line that contains the email address to be validated.

outputFormat

Output a single line: true if the email is valid, and false otherwise.

## sample
example@example.com
true