Implemented input and output n. Working.