Using the complementary event approach, the probability of getting heads at most twice is 1 minus the probability of getting exactly 3 heads. The probability of getting exactly 3 heads is (1/2)^3 = 1/8. Therefore, the required probability is 1 - 1/8 = 7/8.