A four-digit passcode has no digit equal to 0. Starting with the passcode, a machine repeatedly moves the first digit to the end, producing four displayed numbers in all. When these four numbers are divided by 37, their remainders are 10, 13, 15, and 17, in some order. What is the sum of the digits of the passcode?