BeO reacts with HF in presence of ammonia to give [A] which on thermal decomposition produces [B] and ammonium fluoride. Oxidation state of be in [A] is ______.