 PURPOSE: This randomized phase II trial is studying celecoxib to see how well it works compared to that of a placebo in preventing disease recurrence in patients with stage I or stage II head and neck cancer or stage I non-small cell lung cancer. 