public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = "";
		StringBuilder out = new StringBuilder();
		d: do {
			line = br.readLine();
			if (line == null || line.length() == 0)
				break d;
			if (line.startsWith("|"))
				out.append(letra(line));
		} while (line != null && line.length() != 0);
		System.out.print(out);
	}