#!/bin/sh

let in=0
until [ $in -gt 10 ]
do
  read in
  if
    [ "$in" -lt 10 ]
  then
    let out+=$in
  fi
done
echo $out