Four friends A, B, C and D distribute some money among themselves in such a manner that A gets one less than B, C gets 5 more than D and D gets 3 more than B. Who gets the smallest amount?