Future merger of the Milky Way with the Andromeda galaxy and the fate of their supermassive black holes