A flag is to consist of 6 vertical stripes in yellow, green, blue, orange, brown, and red. It is not necessary to use all of the colors. The same color may be used more than once. How many possible flags are there with no two adjacent stripes of the same color?