#include <stdio.h> 

main(argc, argv)
{
  char buf[BUFSIZ];
  int type = 0;

  while(fgets(buf, sizeof(buf), stdin))
    if(strncmp(buf, "NYSERNet SNMP Top Fitty", 23) == 0)
      {
	while(fgets(buf, sizeof(buf), stdin))
	  {
	    if(strncmp(buf, " Output KBytes", 14) == 0)
	      {
		type = 1;
		continue;
	      }
	    if(strncmp(buf, " Output Pkts", 12) == 0)
	      {
		type = 2;
		continue;
	      }
	    if(strncmp(buf, " Input KBytes", 12) == 0)
	      {
		type = 3;
		continue;
	      }
	    if(strncmp(buf, " Input Pkts", 11) == 0)
	      {
		type = 4;
		continue;
	      }
	    if(strncmp(buf, " Top Fifty Lan Input KBytes", 27) == 0)
	      {
		type = 5;
		continue;
	      }
	    if(strncmp(buf, " Top Fifty Lan Input Pkts", 25) == 0)
	      {
		type = 6;
		continue;
	      }
	    if(strncmp(buf, " Top Fifty Lan Output KBytes", 28) == 0)
	      {
		type = 7;
		continue;
	      }
	    if(strncmp(buf, " Top Fifty Lan Output Pkts", 26) == 0)
	      {
		type = 8;
		continue;
	      }
	    if(strncmp(buf, " Top Fifty Lan Output Errors", 27) == 0)
	      break;
	    if(strncmp(buf, " Output Errors", 14) == 0)
	      {
		type = 0;
		continue;
	      }
	    if(strncmp(buf, " Input Errors", 13) == 0)
	      {
		type = 0;
		continue;
	      }
	     if(strncmp(buf, " Top Fifty Lan KBytes", 21) == 0)
	      {
		type = 0;
		continue;
	      }
	     if(strncmp(buf, " Top Fifty Lan Input Errors", 27) == 0)
	      {
		type = 0;
		continue;
	      }
	    
	    if(!*buf)
	      continue;
	    if(*buf == '\n')
	      continue;
	    if(strncmp(buf, "--", 2) == 0)
	      break;

	    switch(type)
	      {
	      case 1:
	      case 7:
		printf("OutKB ");
		break;
	      case 2:
	      case 8:
		printf("OutPkts ");
		break;
	      case 3:
	      case 5:
		printf("InKB ");
		break;
	      case 4:
	      case 6:
		printf("InPkts ");
		break;
	      default:
		continue;
	      }

	    printf("%s", buf);
	  }
      }
}
