title: How to not count negative input
body: <p>is there a way to keep the counter going without counting the negatives and only to stop when the input is zero?</p>
  <pre><code>count = 0
  total = 0
  n = input()
  while n != '0':
      count = count + 1
      total = total + int(n) ** 2
      n = input()
  print(total)
  </code></pre>
  <p>Here is an example of execution result.</p>
  <p>Input: <code>-1 10 8 4 2 0</code>
  Output: <code>184</code></p>