// Arup Guha
// 6/11/2025
// Solution to Kattis Problem: Vandalism
// https://open.kattis.com/problems/vandalism
// Note: This only works since all the letters in the message are unique.

using namespace std;
#include <bits/stdc++.h>

string fix(const string& s);

int main() {

    // Read in letters
    string sign;
    cin >> sign;

    // What we're matching.
    string match = "UAPC";

    int i = 0;

    // Go through the letters still there.
    for (int j=0; j<match.size(); j++) {

        // This means letter i was stolen...
        if (sign[i] != match[j])
            cout << match[j];

        // Go to next.
        else
            i++;
    }

    return 0;
}
