#include <stdio.h>
#include <string.h>

#define ROW 1000
#define COL 10
#define DELIM " \t\r\n"

int main(){

   FILE *fp = fopen("input.txt","r");

   char buf[BUFSIZ];
   char *p;

   float arr[ROW][COL];

   int row = 0;
   int col;

   if(fp == NULL){
      printf("fopen failed\n");
      goto ERROR;
   }

   while(fgets(buf,BUFSIZ,fp) != NULL){
      col = 0;
      for(p = strtok(buf,DELIM); p != NULL; p = strtok(NULL,DELIM)){
         sscanf(p,"%f",&arr[row][col++]);
      }
      ++row;
   }

   fclose(fp);

   return 0;

ERROR:
   return -1;

}