Algorithm about love