How can I get the output in form format?