next up previous
Next: Sample Input Up: Spamming Previous: Input

Output

Output all the email addresses, one per line, that appears in the text, by the order of their appearances. Assume email addresses are in this format:

Once a part of a line is determined to be an email address, that part of the line would not be considered again. Scanning starts at the beginning of the line. For example, for the line:

a@b@c@d@e

after a@b is determined to be an email address, only the part @c@d@e would be considered subsequently. So the valid email addresses on this line are a@b and c@d only.



ACM Programming Contest Account
Mon Feb 5 17:30:22 EST 2001