#include <stdio.h> int main() { int n, a[20] = {0}; scanf("%d", &n); for (int i = 0; i <= n; i++) { scanf("%d", &a[i]); } for (int i = 0; i < n; i++) { if (a[i] != a[n]) printf("%d ", a[i]); } return 0; }