#include <stdio.h>

int main() {
    int n, val, i, pos = -1;
    scanf("%d", &n);
    int arr[n];
    for(i = 0; i < n; i++) {
        scanf("%d", &arr[i]);
    }
    scanf("%d", &val);

    // Find the position of the first occurrence
    for(i = 0; i < n; i++) {
        if(arr[i] == val) {
            pos = i;
            break;
        }
    }

    // Print the array without the first