From a set of food products provided by the user, the system finds the ideal daily intake for a healthy lifestyle. Used the concepts of genetic algorithms - chromosomes, randomly initialized population and an appropriate modification of knapsack problem as a fitness function.