Negation Selector in CSS

:not
Задание 1

Given code:

html<ul>
  <li>1</li>
  <li class="elem">2</li>
  <li>3</li>
  <li>4</li>
  <li class="elem">5</li>
  <li>6</li>
  <li>7</li>
  <li class="elem">8</li>
  <li>9</li>
</ul>

Write a selector that will select all li except li with class elem.

Задание 2

Given code:

html<ul>
  <li>1</li>
  <li>2</li>
  <li>3</li>
  <li>4</li>
  <li>5</li>
  <li>6</li>
  <li>7</li>
  <li>8</li>
  <li>9</li>
</ul>

Write a selector that will select all li except the first one.

Задание 3

Given code:

html<ul>
  <li>1</li>
  <li>2</li>
  <li>3</li>
  <li>4</li>
  <li>5</li>
  <li>6</li>
  <li>7</li>
  <li>8</li>
  <li>9</li>
</ul>

Write a selector that will select all li except the first and last.