A discrete loss function that is not convex or continuous