The 6th and 7th notes are sharpened ascending; both returned to natural descending (F# and G# in the A melodic minor scale).
In bar 3 the natural signs ( @ ) are not technically necessary, since the bar line has already cancelled out the sharps, however they serve to highlight the 6th and 7th notes’ return to natural.