For this Question: We have A balls with the string S written on each of them and B balls with the string T written on each of them.
Alice has two boxes. One contains A cubes with the string S written and other contains B cubes with the string T written.
From these two boxes, Alice chooses one with the string U written on it and throws it away.
Find the number of cubes in each of the box.The first line contains two strings S and T.
The second line contains two integers A and B.
The third line contains a single integer U.

Constraints:
S, T, and U are strings consisting of lowercase English letters.
The lengths of S and T are each between 1 and 10 (inclusive).
S!=T
S=U or T=U.
1≤A, B≤10
A and B are integers.Find the number of cubes in each of the box.Sample Input 1:
red blue
3 4
red

Sample Output 1:
2 4

Explanation: Alice chose a cube with red written on it and threw it away. Now we have two cubes with the string S and four cubes with the string T.
 
Sample Input 2:
red blue
5 5
blue

Sample Output 2:
5 4

Explanation: Alice chose a cube with blue written on it and threw it away. Now we have five cubes with the string S and four cubes with the string T., I have written this Solution Code: #include <iostream>
using namespace std;
 
int main()
{
    ios_base::sync_with_stdio(false);
    string S, T;
    cin >> S >> T;
    int a, b;
    cin >> a >> b;
    string u;
    cin >> u;
 
    if (u == S)
        --a;
    else
        --b;
 
    cout << a << " " << b << endl;
    return 0;
}, In this Programming Language: C++, Now tell me if this Code is compilable or not?