// editor5#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
struct Node 
{
    int data;
    struct Node *next;
    struct Node *prev;
};
struct Node* newNode(int data) 
{
    struct Node* node = (struct Node*) malloc(sizeof(struct Node));
    node->data = data;
    node->next = NULL;
    node->prev = NULL;
    return node;
}
int isValidInteger(char *str) 
{
    int i = 0;
    if (str[0] == '-' || str[0] == '+') i++; 
    for (; str[i] != '\0'; i++) 
    {
        if (!isdigit((unsigned char)str[i])) return 0;
    }
    return 1;
}
int main() 
{
    int n;
    scanf("%d", &n);
    struct Node *head = NULL, *tail = NULL;
    for (int i = 0; i < n; i++) 
    {
        int val;
        scanf("%d", &val);
        struct Node *node = newNode(val);
        if (head == NULL) 
        {
            head = tail = node;
        } 
        else 
        {
            tail->next = node;
            node->prev = tail;
            tail = node;
        }
    }
    char targetInput[50];
    scanf("%s", targetInput);
    if (!isValidInteger(targetInput)) 
    {
        printf("Invalid input");
        return 0;
    }
    int target = atoi(targetInput);
    struct Node *current = head;
    while (current != NULL) 
    {
        if (current->data == target)
        {  
            printf("Found");
            return 0;
        }
        current = current->next;
    }
    printf("Not found");
    return 0;
}