#include<stdio.h>
#include<stdlib.h>

struct Node{
    int data;
    struct Node* next;
    
};
struct Node* create Node (int a){
    struct Node* n=(struct Node*i)malloc(sizeof(struct Node));
    n->data=a;
    n->next=NULL;
    return n;
}
void insertAtEnd(struct Node** head,int a){
    struct Node* newnode=create Node(a);
    if(*head==NULL){
        *head=new Node;
        return 0;
    }
    struct Node*temp=*head;
    while(temp->next!=NULL){
        temp=temp->next;
    }
    temp->next=new Node;
}
// void insertAtk(struct Node**head,inta,int k){
//     struct Node* n=create Node(a);
//     struct Node* temp=*head;
//     int i=1;
//     while(temp)
// }