// 入力とかに使うもの
var reader = require('readline').createInterface({ input: process.stdin, output: process.stdout });
var lines = [];
reader.on('line', function (line) { lines.push(line); });

// メイン
reader.on('close', function () {
	var a = lines[0].split(" ");
	var b = "";
	for(var c in a) b = b + a[c].slice(0,1);
	console.log(b);
});