5. In the bamboo-style figure shown on the right, each letter represents a non-zero digit, and different letters represent different digits. The minimum sum is ( ).
(A) 369
(B) 396
(C) 459
(D) 549
C



Translate the text above into English, please retain the original text's line breaks and format, and output the translation result directly.