Welcome to ZOJ
Information
Problems
Runs
Statistics
Ranklist
Clarification
48 - ZOJ Monthly, November 2005 - 1008
Floating Number Validation

Time Limit: 2 Seconds      Memory Limit: 65536 KB

Given a string, you should validate whether the string represents a legal float number. The legal float number should in this pattern: ^([\+\-])?(?<integral_digits>\d*)?((\.)(?<fractional_digits>\d*))?(([eE])(?<exponent>[\+\-]?\d+))?$ Obviously if both fractional_digits and integral_digits part are empty, this string is also illegal.

Input

There are multiple test cases, each with a string in a line(no extra blanks in this string). The test cases end with a single '#' in a line.

Output

If the string represents a legal float number, output 'Yes' in a line. Otherwise output 'No'.

Sample Input

1.1e11
1.1e1.1
#

Sample Output

Yes
No


Author: HUANG, Ninghai


Submit    Status