When issuing a residence document pursuant to Article 18(1) or (4) of the Agreement, Member States shall use the format laid down in Regulation (EC) No 1030/2002 as amended by Regulation (EU) 2017/1954.The entry in field No 10 of the Annex to Regulation (EC) No 1030/2002 ‘Type of permit’ shall be ‘Article 50 TEU’. Member States shall indicate in field No 12 of the Annex to Regulation (EC) No 1030/2002 ‘Remarks’ whether the document is issued under Article 18(1) or 18(4) of the Agreement.The validity of the residence document shall be of minimum five and of maximum 10 years.