Megabytes and kilobytes

How many bytes are there in one megabyte?

Problem



$1$ kilobyte is actually not $1000$ bytes, it is $2^{10}$ bytes.

$1$ megabyte is $2^{10}$ kilobytes.

How many bytes are there in $1$ megabyte?

This problem is adapted from the World Mathematics Championships