Which cherry pie has less thermal energy?

 - the colder cherry pie
 - the hotter cherry pie
The two cherry pies are made of the same material and have the same mass. So, the colder cherry pie has less thermal energy.