You can wear a hat while traveling on a plane or in a car.