#include <bits/stdc++.h>

int main(){
    char S, T;
    std::cin >> S >> T;
    if(S == 'Y'){
        std::cout << (char)(T + 'A' - 'a') << std::endl;
    }else{
        std::cout << T << std::endl;
    }
    
    return 0;
}


#include <algorithm>
#include <array>
#include <cmath>
#include <cstdint>
#include <deque>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <tuple>
#include <vector>


using namespace std;


using ll = int_fast64_t;
using ld = long double;
template <class T> using pqg = priority_queue<T, vector<T>, greater<T>>;
template <class T> using pq  = priority_queue<T>;
template <class T> inline bool chmax(T &a, T b) { if (a < b) { a = b; return true; } return false; }
template <class T> inline bool chmin(T &a, T b) { if (a > b) { a = b; return true; } return false; }


const ll INF   = (1LL << 30);
const ll INFLL = (1LL << 60);
const ll MAX   = 5000005;
const ll MOD   = 1000000007;


int main(void)
{
  ios::sync_with_stdio(0);
  cin.tie(0);

  ll n, m;
  cin >> n >> m;

  if (m % n == 0) cout << "Yes" << endl;
  else cout << "No" << endl;

  return (0);
}
