#include <cstring>
#include <cmath>
#include <algorithm>
#include <string>
#include <map>
#include <iostream>
#include <vector>
#include <queue>
#include <unordered_map>
#include <random>
#include <stack>
#include <set>
#include <unordered_set>

#define bug(x) cout<<"zdongdebug1: "<<x<<endl;
#define bug2(x, y) cout<<"zdongdebug2: "<<x<<" "<<y<<endl;
#define bug3(x, y, z) cout<<"zdongdebug3: "<<x<<" "<<y<<" "<<z<<endl;
using namespace std;
typedef long long ll;
const int maxn = 105;
const int mod = 998244353;


int main() {
#ifdef suiyuan2009
  freopen("/Users/suiyuan2009/CLionProjects/icpc/input.txt", "r", stdin);
  //freopen("/Users/suiyuan2009/CLionProjects/icpc/output.txt", "w", stdout);
#endif
  string s, t;
  cin>>s>>t;
  if(s[0]=='N')cout<<t<<endl;
  else {
    cout<<char(t[0] - 'a' + 'A')<<endl;
  }
  return 0;
}
#include <bits/stdc++.h>

int main() {
  std::string S, Y;
  std::cin >> S >> Y;
  if (S == "Y") {
    Y[0] = std::toupper(Y[0]);
  }
  std::cout << Y << std::endl;
}