Spam messages are common. When publishing an email address, one way to make automated collectors miss it is to write the address in a scrambled form.
For this problem, a valid email address satisfies all of these conditions:
a-z), periods (.), and exactly one @.@ must both be lowercase letters.An address is scrambled as follows:
@ character with the string at.nospam at any position exactly once, or do not insert it at all. The beginning and the end are also valid insertion positions.Given a scrambled string, find every distinct valid email address that could have produced it.
The input contains one line: the scrambled address, whose length is at most 100 characters.
Print every distinct valid email address that could produce the given scrambled string, one per line. The addresses may be printed in any order.