#include <bits/stdc++.h> #include #include #include #include #include #include using namespace std; int main() { int n; cin >> n; if (n == 0) { cout << 0; return 0; } int a, b; long long sum = 1; for (int i = 1; i <= n; i++) { sum *= 1992; int ge = sum % 10; a = ge; int shi = sum / 10 % 10; b = shi; }
cout << b << a;
return 0;
}