Exampleswith 로직.이 문제를 해결하기 위해 로직을 사용해야 합니다.i munje-reul haegyeolhagi wihae rojik-eul sayonghaeya hamnida.To solve this problem, you need to use logic.