On a trip from the United States to Canada, Isabella took d U.S. dollars. At the border she exchanged them all, receiving 10 Canadian dollars for every 7 U.S. dollars. After spending 60 Canadian dollars, she had d Canadian dollars left. What is the sum of the digits of d?