// Arup Guha
// 10/6/2013
// Solution to 2011 MCPC Problem E: Refrigerator Magnets
import java.util.*;

public class e {

	public static void main(String[] args) {

		Scanner stdin = new Scanner(System.in);
		String s = stdin.nextLine();

		// Process each case.
		while (!s.equals("END")) {

			// Get frequency count.
			int[] freq = new int[26];
			for (int i=0; i<s.length(); i++)
				if (s.charAt(i) >= 'A' && s.charAt(i) <= 'Z')
					freq[s.charAt(i)-'A']++;

			// Check for duplicates.
			boolean flag = true;
			for (int i=0; i<26; i++)
				if (freq[i] > 1)
					flag = false;

			// Output if none.
			if (flag)
				System.out.println(s);

			// Get next case.
			s = stdin.nextLine();
		}
	}
}