print answer in right format