Hungarian buildings puzzle