Input (grade 4): Any piece directly in front of a pawn, friend or foe, blocks its advance.
Output (grade 2): Any piece in front of a pawn, white or black, stops its moving.