#include<bits/stdc++.h> using namespace std; int main(){ int a; scanf("%d",&a); cout<<a%10<<a/10; return 0; }