#include #include #include #include #include using namespace std; #define all(x) (x).begin(),(x).end() #define pb push_back void ans(int n) { int a[11]={-114514,7,8,9,4,5,6,1,2,3,0}; int ans = a[n]; if(ans == 0) ans=21; cout << ans << endl; } int main() { int n; cin >>n; ans(n); }