Pošalji zapis e-poštom: Optimal learning with excitatory and inhibitory synapses