Printed the wrong output