read input from stdin python hackerrank