This documentation is automatically generated by online-judge-tools/verification-helper
#define PROBLEM "https://judge.yosupo.jp/problem/exp_of_formal_power_series"
#include <atcoder/fps>
#include <iostream>
using namespace atcoder;
using namespace std;
int main()
{
    int n; cin >> n;
    fps a(n);
    for (int i = 0; i < n; i++) {
        int x; cin >> x;
        a[i] = x;
    }
    for (auto x : a.exp_inplace()) {
        cout << x.val() << endl;
    }
    return 0;
}#line 1 "test/fps_exp.test.cpp"
#define PROBLEM "https://judge.yosupo.jp/problem/exp_of_formal_power_series"
#include <atcoder/fps>
#include <iostream>
using namespace atcoder;
using namespace std;
int main()
{
    int n; cin >> n;
    fps a(n);
    for (int i = 0; i < n; i++) {
        int x; cin >> x;
        a[i] = x;
    }
    for (auto x : a.exp_inplace()) {
        cout << x.val() << endl;
    }
    return 0;
}