Add sdd version taking words from stdin.