#include <bits/stdc++.h>
using namespace std;

using ll = long long;
using ull = unsigned long long;

const long long INF = 1LL << 60;

template <typename T>
void chmin(T& a, T b) {
    if(a > b) {
        a = b;
    }
}

template <typename T>
void chmax(T& a, T b) {
    if(a < b) {
        a = b;
    }
}

int main() {
    string S;
    cin >> S;

    char sentou = S[0];
    S[0] = S[1];
    S[1] = S[2];
    S[2] = sentou;

    cout << S << endl;

    return 0;
}
#include <iostream>
#include <string>
#include <vector>
#include <deque>
#include <algorithm>
#include <math.h>
#include <iomanip>
#include <sstream>
#define INF 1000000009
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using p = pair<int, int>;


int main() {
    
    int n;
    
    cin >> n;
    vector<int> a(n+1,0);
    rep(i,n){
      int x;
      cin >> x;
      if(x<1||x>n){
        cout << "No" << endl;
        return 0;
      }
      if(a[x]!=0){
        cout << "No" << endl;
        return 0;
      }
      a[x]++;
    }
    cout << "Yes" << endl;
    return 0;
}