outputing result

not sure