<image> As shown in the figure, there are five single patient rooms in the ward area, with four patients A, B, C, and D staying. According to different medical requirements, patient A needs to swap rooms with patient D, and patient C needs to swap rooms with patient B. During each swap, only one patient can be moved into an empty room. To complete the swaps, at least how many moves are needed for the patients?