Flamini out for five months