describe

Define a document that contains book information ( Book number , title , Price ) Order table of , Read in the corresponding book data to complete the creation of the book information table , Then count the number of books in the book list , At the same time, output the information of each book line by line .

input


input n+1 That's ok , Middle front n Yes, yes n Information about this book ( Book number , title , Price ), One line for each book , Book number , title , Prices are separated by spaces , There is no space after the price . Last but not least n+1 Line is the end of input flag :0
0 0( Three spaces separated 0). The book number and title are string type , Price is floating point type .

output


total n+1 That's ok , The first 1 Row is the number of books in the created book table , after n Yes, yes n Information about this book ( Book number , title , Price ), One line for each book , Book number , title , Prices are separated by spaces . The price output retains two decimal places .

sample input 1  copy <>
9787302257646 Data-Structure 35.00 9787302164340 Operating-System 50.00
9787302219972 Software-Engineer 32.00 9787302203513 Database-Principles 36.00
9787810827430 Discrete-Mathematics 36.00 9787302257800 Data-Structure 62.00
9787811234923 Compiler-Principles 62.00 9787822234110
The-C-Programming-Language 38.00 0 0 0
sample output 1
8 9787302257646 Data-Structure 35.00 9787302164340 Operating-System 50.00
9787302219972 Software-Engineer 32.00 9787302203513 Database-Principles 36.00
9787810827430 Discrete-Mathematics 36.00 9787302257800 Data-Structure 62.00
9787811234923 Compiler-Principles 62.00 9787822234110
The-C-Programming-Language 38.00
 
#include<stdio.h> #include<string.h> #define Maxsize 100 typedef struct
book_data{ double book_number; char book_name[100]; double book_price;
}book_data; int main(){ book_data list[Maxsize]; int i=0; int t; while (1){
scanf("%lf",&list[i].book_number); scanf("%s",&list[i].book_name);
scanf("%lf",&list[i].book_price);
if(list[i].book_number==0&&list[i].book_name[0]=='0'&&list[i].book_price==0)
break ; ++i; } printf("%d\n",i); for(t=0;t<i;t++){ printf("%.0lf
",list[t].book_number); printf("%s ",list[t].book_name);
printf("%.02f",list[t].book_price); printf("\n"); } }