Grandfather puzzle