#include <stdio.h>
#include <stdlib.h>

struct TreeNode{
    int data;
    struct TreeNode *left, *right;
};

struct TreeNode* createNode(int value) {
    struct TreeNode* newNode = (struct TreeNode*)malloc(sizeof(struct TreeNode));
    newNode->data = value;
    newNode->left = newNode->right = NULL;
    return newNode;
}

struct TreeNode* insert(struct TreeNode* root, int value) {
    if (root == NULL)
        return createNode(value);
    if (value < root->data)
        root->left = insert(root->left, value);
    else if (value > root->data)
        root->right = insert(root->right, value);
    return root;
}

int search(struct TreeNode* root, int target) {
    if (root == NULL)
        return 0;
    if (root->data == target)
        return 1;
    else if (target < root->data)
        return search(root->left, target);
    
        
    else
        printf("Not Found")
}

int main() {
    int n;
    scanf("%d", &n);
    
    if(n<=10&&n>=-10)
    {
    if (n <= 0) {
        printf("Invalid input\n");
        return 0;
    }

    struct TreeNode* root = NULL;
    for (int i = 0; i < n; i++) {
        int val;
        scanf("%d", &val);
        root = insert(root, val);
    }

    int target;
    scanf("%d", &target);

    if (search(root, target))
        printf("Found\n");
    else
        printf("Not Found\n");
}
else
    return 0;
}