Solution 295-304 by Ingo Niermann