#include<stdio.h>
#include<stdlib.h>
struct node{
    int data;
    struct node*next;
}*head=NULL,*tail;
int main()
{
    int o,v;
    scanf("%d %d",&o,&v);
    struct node*temp=head;
        while(temp)
        {
            if(temp->data==0)
            {
                temp->data=v;
                flag=i
            }
            temp=temp->next
        }
        if(flag==0)
        {
            printf("Value not found")
        }
    }
    else
    {
        while(head)
        {
     printf("%d",head->data);
     head=head->next
        }
        return 0;
    }