#include<stdio.h>
#include<stdlib.h>
struct node
{
    int data;
    struct node* next;
};
struct node* head=NULL;
struct newnode= (struct node*)malloc(sizeof(struct node));
newnode->data=value;
newnode->next=head;
head=newnode;
struct node* temp=head;
while(temp!=NULL)
{
    temp->data=val;
    temp->next=NULL;
}
int main()
{
    int n;
    scanf("%d",&n);
    int a[n];
    for(int i=0;i<n;i++)
    {
        scanf("%d ",a[i]);
        
    }
}