A rectangle with the side lengths and with should be placed in a right-angled coordinate system so that there is no point with integer coordinates in its interior or on its edge. Under what necessary and at the same time sufficient conditions for and is this possible?