#include <stdio.h>

int main() 
{
    int a[100], n, tar, j, sum, temp, b[100];

    printf("Enter the size of array: ");
    scanf("%d", &n);

    printf("Enter the array: ");
    for (int i = 0; i < n; i++) 
    {
        scanf("%d", &a[i]);
    }

    printf("Enter the target number: ");
    scanf("%d", &tar);

    temp = tar;
    for (j = 0; j < n; j++) 
    {
        b[j] = tar - a[j];

        if (tar == a[j]) 
        {
            printf("%d", tar);
            break;
        }
    }

    
}