prob009, 1 optimization