1243 solution