how to take dictionary input from user