Finding the input that corresponds to a given output