#include <bits/stdc++.h>
int main() {
  int num[32], n, i;
  for (i = 0; i < 32; i++) {
    scanf("%d", &num[i]);
  }
  scanf("%d", &n);
  printf("The %d-th element is %d", n, num[n - 1]);
  return 0;
}
