He put the stress on joint work with the 55-year-old Putin who will become prime minister , but he said as president he would keep control over foreign policy to defend Russia 's interests by all legal means .