#include<stdio.h>
#include<stdlib.h>

struct Node{
    int data;
    struct Node*next;
};
struct Node*createNode(int value)
{
    struct Node*newNode=(struct Node*)malloc(sizeof(struct Node));
    newNode->data=value;
    newNode->next=NULL;
    return newNode;
}
int main()
{
    int n,value,i;
    struct Node*head=NULL,*temp=NULL;
    scanf("%d",&n);
    if(n<0||n>10)
    {
        printf("Invalid input");
        return 0;
    }
    for(i=0;i<n;i++)
    {
        printf("Invalid input");
        return 0;
    }
    struct Node*newNode=createNode(value);
    if(head==NULL)
    {
        head=newNode;
        temp=head;
    }
    else
    {
        temp->next=newNode;
        temp=temp->next;
    }
}
temp=head;
while(temp!=NULL)
{
    printf("%d",temp->data);
    temp=temp->next;
}
return 0;
}