XD is used for Design which we have to design before. In XD we must know the flow. In your case we should know input and output before. So if you click on input it should move to output.
Hope its help.
We can design like calculator in XD, but if you are expected complete functionality of calculator like adding any number is not possible in XD. Until unless you are specific which number you want to add.