sed 'n;y/ /-/;a-r%[No]r[Yes]rd/3Rp'|dc