#include using namespace std; int x, n; long long t = 1; int main() { ios::sync_with_stdio(false); //读入输出优化的强迫症 cin >> x >> n; for (int i = 0; i < n; t = t + t * x, i++); cout << t; }