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

int main(){
  int64_t L,ansue=1,anssita=1,ans;
  cin>>L;
  for(int i=0;i<11;i++){
    ansue*=L-1-i;
    anssita*=i+1;
    if(ansue%2==0&&anssita%2==0){
      ansue/=2;
      anssita/=2;
    }
    if(ansue%3==0&&anssita%3==0){
      ansue/=3;
      anssita/=3;
    }
    if(ansue%5==0&&anssita%5==0){
      ansue/=5;
      anssita/=5;
    }
    if(ansue%7==0&&anssita%7==0){
      ansue/=7;
      anssita/=7;
    }
    if(ansue%11==0&&anssita%11==0){
      ansue/=11;
      anssita/=11;
    }
  //  cout<<"ansue="<<ansue<<endl;
  //  cout<<"anssita="<<anssita<<endl;
  }
  ans=ansue/anssita;
  cout<<ans<<endl;
}
  

// Problem: A - Rotate
// Contest: AtCoder - AtCoder Beginner Contest 197（Sponsored by Panasonic）
// URL: https://atcoder.jp/contests/abc197/tasks/abc197_a
// Memory Limit: 1024 MB
// Time Limit: 2000 ms
// Powered by CP Editor (https://github.com/cpeditor/cpeditor)

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

#define S             second
#define F             first
#define pb            push_back
#define ppb           pop_back()
#define B(c)          (c).begin()
#define E(c)          (c).end()
#define all(c)        (c).begin(),(c).end()
#define sz(c)         (int)((c).size())
#define lcm(a,b)      (a * (b / __gcd(a,b)))
#define pow(x, n)     (int)(pow(x,n))
#define lb            lower_bound
#define mp            make_pair
#define ll            long long
#define vi            vector<int>
#define vl            vector<ll>
#define pii           pair<int,int>
#define pll           pair<ll,ll>
#define vpi           vector<pii>
#define vpl           vector<pll>
#define vvi           vector<vector<int> >
#define vvl           vector<vector<ll> >
#define M_PI		  3.14159265358979323846
#define fn(i,a,b)     for(ll i=a;i<b;i++)
#define fe(i,a,b)     for(ll i=a;i<=b;i++)





int main()
{
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);
	cout.tie(NULL);

	ll t = 1;
	//cin >> t;
	while (t--)
	{
       string s;
       cin >> s;
       char c = s[0];
       string p = s.substr(1,sz(s)-1);
       p+=c;
       cout<<p;

	}

}

