/* Generated by re2c */
#include <fstream>

static void conv(std::ifstream &in, std::ofstream &out)
{
    std::streampos mar;
#   define YYCTYPE     char
#   define YYPEEK()    in.peek()
#   define YYSKIP()    do { in.ignore(); if (in.eof()) return; } while(0)
#   define YYBACKUP()  mar = in.tellg()
#   define YYRESTORE() in.seekg(mar)
loop:
    
{
	YYCTYPE yych;
	yych = YYPEEK ();
	switch (yych) {
	case '\r':	goto yy4;
	default:	goto yy2;
	}
yy2:
	YYSKIP ();
yy3:
	{ out.put(yych); goto loop; }
yy4:
	YYSKIP ();
	yych = YYPEEK ();
	switch (yych) {
	case '\n':	goto yy5;
	default:	goto yy3;
	}
yy5:
	YYSKIP ();
	{ out.put('\n'); goto loop; }
}

}

int main(int argc, char **argv)
{
    if (argc != 3) return 1;

    std::ifstream in(argv[1], std::ios::binary);
    std::ofstream out(argv[2], std::ios::binary);
    if (in.fail() || out.fail()) return 2;

    conv(in, out);
    return 0;
}
