input seems to work on c9. using scanf in this way is likely system dependent. based on my research and from these tests.