BYTESA - MAG

no tags 

Stark insulted Loki with another one of his witty one-liners; so Loki’s out for revenge. And he’s gone straight for Stark’s beloved personal assistant – Pepper Pots. Pots has somehow managed to outrun Loki and hide in a playschool but it’s only a matter of time before Loki finds her. So, she has to leave a message for Tony. She tried calling him but after just one ring, the battery died. Now, Pots did learn a trick or two from Stark during all they years that she’s been with him; so she’s sure that he’ll be able to track her location because of that phone call. But how does she leave a message?

She sees a magnetic board on the wall with 26 separate magnets- each containing one letter of the English alphabet. She rearranges these magnets to write a message. Her task, though, is hindered by the fact that she can only make phrases that use each letter only once.

Your task is to write a program that will look at a list of possible phrases and report which phrases could have been written by Pepper Pots.

Input: The input will consist of one or more lines, ending with a line that contains only the word “END”.

Each line will be 60 characters or less, and will consist of one or more words separated by a single space each, with words using only uppercase letters (A–Z). There will not be any leading or trailing whitespace, and there will not be any blank lines.

Output: Output only the lines which can be written in refrigerator magnets—that is, the lines which have no duplicate letters. Output them exactly the same as they were in the input—white spaces and all. Do not output the final “END” string.

Each line will be 60 characters or less, and will consist of one or more words separated by a single space each.

Output:  Output only the lines which can be written in refrigerator magnets

SAMPLE INPUT

I YOU

I LOVE 

HAPPY

HELP

CUP

WHAT UP DOC

HAVE A NICE DAY

END

OUTPUT

I YOU

I LOVE

HELP

CUP

WHAT UP DOC



Added by:Troika::Bytes
Date:2012-02-16
Time limit:0.100s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:All except: ASM64