Oxygen and fluorine have small size and high electronegativity. Hence, they can oxidise the metal to the highest O.S.