#!/bin/bash

read in1
read in2
read in3

a=(`echo $in2 | fold -1`)
b=(`echo $in3 | fold -1`)
i=0
n=0
for x in ${a[@]}; do
  p=$(($x-${b[$i]}))
  if [ $p -gt 0 ]; then
    n=$n + $p
  fi
  let ++i
done
