The number 64 is both a perfect cube and a perfect square, since $4^3 = 64$ and $8^2 = 64$. What is the next larger number that is both a perfect cube and a perfect square?
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
The number 64 is both a perfect cube and a perfect square, since $4^3 = 64$ and $8^2 = 64$. What is the next larger number that is both a perfect cube and a perfect square?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
729
The number 64 is both a perfect cube and a perfect square, since $4^3 = 64$ and $8^2 = 64$. What is the next larger number that is both a perfect cube and a perfect square?
train