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