ex post factoyoudaoicibaDictYouDict
from Medieval Latin ex postfacto, "from what is done afterwards." From facto, ablative of factum "deed, act" (see fact). Also see ex-, post-.