arrange flags to calendar