#include<stdio.h>
#include<stdlib.h>
#define len sizeof(pNode)

typedef struct student
{
    long num;
    float score;
    struct student *next;
}*pNode;

int n;/*一个全局变量*/

pNode creat()
{
    pNode head,p1,p2;
    n=0;
    p1=p2=(pNode)malloc(len);
    head=NULL;
    scanf("%ld %f",&p1->num,&p1->score);
    while(p1->num!=0)
    {
        n++;
        if(n==1)
            head=p1;
        else
            p2->next=p1;
        p2=p1;
        p1=(pNode)malloc(len);
        scanf("%ld %f",&p1->num,&p1->score);
    }
    p2->next=NULL;
    return head;
}

void print(pNode head)
{
    pNode p;
    printf("Now,these %d records are :\n",n);
    p=head;
    if(head!=NULL)
    {
        do
        {
            printf("%ld %5.1f\n",p->num,p->score);
            p=p->next;
        }while(p!=NULL);
    }
}

int main()
{
    pNode head;
    head=creat();
    print(head);
    return 0;
}