On a finite group with a partition