(defn make-vec
  [n]
  (->>
    (clojure.string/split (str n) #" ")
    (map #(Integer/parseInt %))))

(defn abc-125b
  []
  (let [n (Integer/parseInt (read-line))
        v (make-vec (read-line))
        c (make-vec (read-line))]
    (->>
      (for [i (range 0 n)]
        (if (> (nth v i) (nth c i))
          (- (nth v i) (nth c i))
          0))
      (reduce +))))

(prn (abc-125b))