Is the ans. 1059
Reason:2007=223*9.2007^2007=(223^2007)*(9^2007)
9^2007 can be taken care of.
As regards 223^2007,the 1st 223 will be divided in the 223;(let ; be factorial). And this will continue upto 445;(1*223)
From the 446; there will be two 223's in every ; upto 668;(2*223)
From the 669; there will be three 223's in every ; upto 891;(3*223)
And from 892; there will be four 223's in every ;upto the ans.
So the smallest X=891;+168(i.e. remaining 2007-6*223/4)
Therefore the ans. is 1059
Disclaimer:This is what i think,cud be wrong