amphoteric

functioning as an acid or as a base.