JEDNAKOS JEDNAKOST Problem

Please help me how to approach the solution for this problem?