#include using namespace std; int main() { string s; cin >> s; for (char a : s) if (a == 'a') cout << a; cout << 'a' << "\n"; return 0; }