Lucy loves math , but math doesn't love her .
One day , her teacher gave her a very big cake .
And her teacher said , "This cake needs to divided into exactly

parts , and each part must be a square . If you can finish that job , I will tell math to love you . "
As everyone knows ,it is impossible to make math fall in love with Lucy . But Lucy sometimes can divide the cake into exactly n squares .
So our question is , is Lucy possible to finish her teacher's job ?
Please notice that Lucy can only divide the cake into two parts by vertical or horizontal lines at each time .