How to use sqrt for input expression?