func_code_string: #include <bits/stdc++.h>   using namespace std;   const int mm = 2e5 + 30;   long long a1, a2, a3, a4, a5, a6, a7, a8, a9, ez1, ans, n, m, k, sum;   string s, s1, s2, s3;   int flag[mm];   bool y = 0;   bool omm(const pair<int, int> &a, const pair<int, int> &b) {     return (a.second < b.second);   }   void input() { cin >> n; }   void solve() {     for (int i = 1; i <= n; i++) {       cin >> ez1;       flag[ez1] = i;     }     int l = 0;     for (int i = 0; i < n; i++) {       cin >> ez1;       if (flag[ez1] < l) {         cout << 0 <<    ;       } else {         cout << abs(flag[ez1] - l) <<    ;         l = flag[ez1];       }     }     cout << endl;   }   int main() {     ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);     input();     solve();     return 0;   }   