#include <bits/stdc++.h>
#define rep(i,n) for (int i=0; i<n; i++)
using namespace std;

int main() {
  char S, T;
  cin >> S;
  cin >> T;
  
  if(S=='Y') cout << char(T-32) << endl;
  else cout << T << endl;
  return 0;
}
#include<iostream>
#include<algorithm>
#include<string>
#include<map>
#include<vector>
#define rep(i, n) for(int i=0; i<n; i++)
using namespace std;
typedef long long ll;

int main(){
    int a,b; cin>>a>>b;
    cout << (a+b)/2 << " " << (a-b)/2 << endl;
}