if parenthesis_count is negtive, let input loop can work normal.