#include <iostream>
#include <vector>
using namespace std;
void dfs() {
int arr[500000];
dfs();
}
int main()
{
int n;
cin >> n;
if (n % 7 == 1) cout << n; // AC
else if (n % 7 == 2) cout << n; // WA
else if (n % 7 == 3) cout<<n; // TLE
else if (n % 7 == 4) cout<<"XiaoTan_Tian"; // UKE
else if (n % 7 == 5) cout << n; // RE
else if (n % 7 == 6) {
cout<<n;
} // OLE
else if (n % 7 == 0) {
cout<<n;
} ; // MLE
return 0;
}一大堆UKE……