HAMA-681: finish the output method that get the output with given input