A sample of ideal gas (γ = 1.4) is heated at constant pressure. If 140 J of heat is supplied to gas, find ΔU and w.