import tools.*;

class Mat {
  String ci= ""; // Los campos de una línea
  int ptje= 0;
  Mat(String ci, int ptje) {
    this.ci= ci;
    this.ptje= ptje;
  }
  // Lee del archivo los campos en el formato
  // ci:ptje
  Mat(TextReader lect) {
    if (lect.eofReached())
      this.ci= null;
    else {
      this.ci= lect.readString();
      this.ptje= lect.readInt();
      lect.skip();
    }
  }
  // Escribe los campos en el formato ci:nombre:cuenta
  void escribir(TextWriter escr) {
    escr.print(ci);
    escr.println(ptje);
  }
}
