Read input from command line