Die Aufgabe wurde in Prolog geschrieben und mit SWI-Prolog compiliert mit der Version 5.4.7