python read input from stdin hackerrank