There are some sweets and some children. If one sweet is given to each child, one is left. If two sweets are given to each child, one child is left. Find the number of sweets and the number of children.