Arrive in lower-altitude cities first (Lima is at sea level) and spend 1–2 days there before flying to Cusco. In Cusco, rest your first day, avoid alcohol, and drink water.
Altitude sickness affects many people; symptoms include headaches and fatigue. Descent to lower altitude (Sacred Valley at 2,900m) often relieves symptoms within 24 hours.