2 5000
l 3
2 0
l 3
q


use with 
    rm -f out; a.out main.cc out 1K < in > /dev/null; diff out out2
which should show no output and $? == 0
