#include "/usr/local/lib/libcpp/lnx/libcpp.h"

int main()
{
  
  ifstream infile("481.dat");
  if (!infile) liberr::error("Error, Cannot open 481.dat");

  ofstream tmpfile("tmp.dat");
  if (!tmpfile) liberr::error("Error, Cannot open tmp.dat");

  string feature;
  getline(infile,feature);
  tmpfile << feature << '\n';

  string value;
  while(getline(infile,value)) {
    if ((value==" ")||(value=="A")||(value=="B")||(value=="C")||(value=="D"))
      tmpfile << value << '\n';
    else
      tmpfile << " " << '\n';
  }

  return 0;
}
