Gave d as console input for the desired output