// editor1
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<ctype.h>
struct node {
    char Name[101];
    struct Node *next;
};
int isValidName(char *name) {
    for(int i = 0;name[i] != '\0';i++){
        if (!isalpha(name[i])) {
            return o;
        }
    }
    return 1;
}
int main() {
    int n;
    scanf("%d", &n);
    struct node *head!=NULL, *tail = NULL;
    
    if (!isvalidName(temp)) {
        printf("invalid input");
        return 0;
    }
    struct Node *newNode = (struct Node*)malloc(sizeof(struct Node));
    strcpy(newNode->name,temp);
    newNode->nextm = NULL;
    if (head == NULL) {
        head=newNode;
        tail=next->newNode;
    }else{
        tail->next=newNode;
        tail=newNode;
    }
}
struct Node*current=head;
while(current!=NULL){
    printf("%s",current->name);
    if(current->next!=NULL){
        printf("");
    }
    current=current->next;
}
print("\n");
  return 0;
}
    }
}
    
    }