read
s=(`sort -n`)
total=$((`echo ${s[@]} | tr ' ' +`))
if((total%10==0))
then
    min=`echo ${s[@]} | tr ' ' '\n' | grep -v "0$" | head -1`
    total=$((total-min))
fi
((total%10==0)) && echo 0 || echo $total
