Part of 1985 Czech And Slovak Olympiad IIIA
Source: Czech and Slovak Olympiad 1985, National Round, Problem 6