According to the international standard ISO 80000 Quantities and units – Part 9: Physical chemistry and molecular physics (corrected in Amendment 1, 2011-06-01), the attached subscripts and superscripts have the following meanings.
(…)
The nucleon number (mass number) of a nuclide is shown in the left superscript position, as in the following
example: $$\mathrm{^{14}N}$$
(…)
The atomic number (proton number) is shown in the left subscript position, as in the following example. $$\mathrm{_{64}Gd}$$
(…)
The same meanings are described in the German standard DIN 1338 (2011).
$$^A_Z\mathrm E_\nu^z$$
This notation is also used in Nomenclature of Inorganic Chemistry – IUPAC Recommendations 2005 (Red Book). Note, however, that this document unfortunately introduced the terrible typographic disaster of the staggered notation for ions (see this question).
The mass, charge and atomic number of a nuclide are indicated by means of three indexes (subscripts and superscripts) placed around the symbol. The positions are occupied as follows:
left upper index mass number
left lower index atomic number
right upper index charge
The same notation can also be found in the IUPAC Green Book Quantities, Units and Symbols in Physical Chemistry (2007).
It is also recommended in the ACS Style Guide:
Use the left superscript for mass number
Use the left subscript for atomic number