#include <bits/stdc++.h>
using namespace std;
void Main() {
  string tmp, s;
  cin >> tmp >> s >> tmp;
  cout << "A" << s[0] << "C" << endl;
}
int main() {
  cin.tie(nullptr);
  ios_base::sync_with_stdio(false);
  cout << fixed << setprecision(15);
  Main();
}
