#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#include "node.h"



struct node *delete_value(struct node *head, int value) {
    // TODO: implement this function
    (void) value;
    return head;
}


int main(void) {
    int n;
    if (scanf("%d", &n) != 1) { n = 0; }
    int arr[1000];
    for (int i = 0; i < n; i++) { scanf("%d", &arr[i]); }
    int value;
    if (scanf("%d", &value) != 1) { value = 0; }
    struct node *head = build_list(arr, n);
    head = delete_value(head, value);
    print_list(head);
    free_list(head);
    return 0;
}
