public static void main(String[] args) throws IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String line = "";
		StringBuilder out = new StringBuilder();
		fillMap();
		while ((line = in.readLine()) != null && line.length() != 0) {
			boolean rev = isReverse(line);
			boolean mir = isMirror(line);
			if (rev)
				if (mir)
					out.append(line + " -- is a mirrored palindrome.\n\n");
				else
					out.append(line + " -- is a regular palindrome.\n\n");
			else if (mir)
				out.append(line + " -- is a mirrored string.\n\n");
			else
				out.append(line + " -- is not a palindrome.\n\n");
		}
		System.out.print(out);
	}