character input and output exercises