What number should replace the question mark?

What number replaces the ?

 

If you look carefully you will see why the numbers are written as they are. Find out what number should replace the question mark.

                           Click to see Answer