// 2013-08-18 DWF
// Simultaneously convert Latin1 to CP437 and Unix LF to DOS CR/LF,
// and add a ^Z at the end.  Requires Dstr 1.0.
#include <Dstr>
int main () {
  Dstr buf;
  while (!buf.getline(stdin).isNull())
    printf ("%s\r\n", buf.CP437().aschar());
  printf ("\032");
  return 0;
}
