#include <iostream>
using namespace std;

/*
Input

The first and only line of input will contain 
at most 100 characters, uppercase and lowercase 
letters of the English alphabet and hyphen 
(‘-’ ASCII 45). The first character will always 
be an uppercase letter. Hyphens will always be 
followed by an uppercase letter. All other 
characters will be lowercase letters.

Output

The first and only line of output should 
contain the appropriate short variation.

Examples:
input: Knuth-Morris-Pratt
output: KMP
*/
int main() {
	string input, output;
	cin >> input;
	output += input[0];
	for (int i = 0; i < input.length(); ++i) {
		if (input[i] == '-') {
			output += input[i + 1];
		}
	}
	cout << output;
}