#include<stdio.h>
int main () {

   int  n, s[10000], q, t[500];
   int  i, key, count;

   scanf ("%d\n", &n);
   for (i = 0; i < n; i++) {
     scanf ("%d\n", &s[i]);
   }

   scanf ("%d\n",&q);
   for (i = 0; i < q; i++) {
     scanf ("%d\n", &t[i]);
   }

   count = 0;
   for (i = 0; i < n; i++) {
     s[i] = key;
     while (t[i] != key) {
       i++
       if (i == q-1) {
          break;
       }
     count++;
     }

   return 0;
}