local n = io.read("*n")
local a, b = {}, {}
for i = 1, n do a[i] = io.read("*n") end
for i = 1, n do b[i] = io.read("*n") end
local asum, bsum = 0, 0
local c = {}
for i = 1, n do
  c[i] = b[i] - a[i]
  asum, bsum = asum + a[i], bsum + b[i]
end
table.sort(c)
local cnt = bsum - asum
for i = 1, n do
  if c[i] < 0 then
    cnt = cnt + c[i]
  else break end
end
print(0 <= cnt and "Yes" or "No")
