Finding Inputs And Outputs Of A Function