#include<stdio.h>
struct node{
int i;
struct node *link;
};
int main()
{

    int a;

    struct node *new=(struct node*) malloc(sizeof(struct node));
    new->i=1;
    new->link=NULL;
    
    struct node *new1=(struct node*) malloc(sizeof(struct node));
    new1->i=2;
    new1->link=new;
    
    struct node *new2=(struct node*) malloc(sizeof(struct node));
    new2->i=3;
    new2->link=new1;
    
    struct node *temp;
    temp=new2;
    temp = temp->link;
    
    printf("%d",temp->i);
    
    return 0;
}