Part of 1989 Czech And Slovak Olympiad IIIA
Source: Czech and Slovak Olympiad 1989, National Round, Problem 3