var f:file;c:char;begin reset(f,"/dev/fd/0",1);repeat blockread(f,c,1);write(c+c);until 0=1 end.