#K65677. Valid Number Checker

    ID: 32251 Type: Default 1000ms 256MiB

Valid Number Checker

Valid Number Checker

Given a string, determine if it represents a valid number. The number can be an integer, a decimal, or a number in scientific notation. Leading and trailing whitespaces should be ignored. In other words, if the input string conforms to the format

[ [+-]?\Bigl(\d+(.\d*)?|.\d+\Bigr)([eE][+-]?\d+)? ]

then it is valid. Otherwise, it is not.

inputFormat

The input consists of a single line containing a string S. This string may include spaces at the beginning or end. You need to determine whether S is a valid number.

outputFormat

Output a single line: print 'True' if the string S is a valid number, and 'False' otherwise.## sample

0
True