import tools.*;

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