#include <bits/stdc++.h>
using namespace std;
template <class T1, class T2>
ostream &operator<<(ostream &os, const pair<T1, T2> &a) {
  return os << '(' << a.first << ", " << a.second << ')';
}
template <class T>
ostream &operator<<(ostream &os, const vector<T> &a) {
  os << '[';
  for (unsigned long long i = 0; i < a.size(); i++)
    os << a[i] << (i < a.size() - 1 ? ", " : "");
  os << ']';
  return os;
}
struct data {
  long long x, a, b, c, d;
  data(long long _x, long long _a, long long _b, long long _c, long long _d)
      : x(_x), a(_a), b(_b), c(_c), d(_d){};
};
long long read() {
  long long x;
  cin >> x;
  return x;
}
vector<data> a;
long long dp[5005][5005];
long long n, S, E;
long long INF = 1e18;
long long cal(long long pos, long long cc) {
  if (pos == n + 1) {
    if (cc == 1) return 0;
    return INF;
  }
  long long &ret = dp[pos][cc];
  if (ret != -1) return ret;
  ret = INF;
  bool lockLeft = false;
  bool lockRight = false;
  if (pos > S) lockLeft = true;
  if (pos > E) lockRight = true;
  if (cc == 1 && lockLeft && lockRight) return ret;
  if (pos == S) {
    if (cc >= 1) {
      long long X = a[pos].x + a[pos].c + cal(pos + 1, cc);
      ret = min(ret, X);
    }
    long long X = -a[pos].x + a[pos].d + cal(pos + 1, cc + 1);
    ret = min(ret, X);
  } else if (pos == E) {
    if (cc >= 1) {
      long long X = a[pos].x + a[pos].a + cal(pos + 1, cc);
      ret = min(ret, X);
    }
    long long X = -a[pos].x + a[pos].b + cal(pos + 1, cc + 1);
    ret = min(ret, X);
  } else {
    long long X =
        -a[pos].x + a[pos].b - a[pos].x + a[pos].d + cal(pos + 1, cc + 1);
    ret = min(ret, X);
    if (cc - lockLeft >= 1) {
      X = -a[pos].x + a[pos].b + a[pos].x + a[pos].c + cal(pos + 1, cc);
      ret = min(ret, X);
    }
    if (cc - lockRight >= 1) {
      X = a[pos].x + a[pos].a - a[pos].x + a[pos].d + cal(pos + 1, cc);
      ret = min(ret, X);
    }
    if (cc >= 2) {
      X = a[pos].x + a[pos].a + a[pos].x + a[pos].c + cal(pos + 1, cc - 1);
      ret = min(ret, X);
    }
  }
  return ret;
}
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  cin >> n >> S >> E;
  for (long long i = (long long)1; i <= (long long)n + 1; i++) {
    a.push_back(data(0, 0, 0, 0, 0));
  }
  for (long long i = (long long)1; i <= (long long)n; i++) a[i].x = read();
  for (long long i = (long long)1; i <= (long long)n; i++) a[i].a = read();
  for (long long i = (long long)1; i <= (long long)n; i++) a[i].b = read();
  for (long long i = (long long)1; i <= (long long)n; i++) a[i].c = read();
  for (long long i = (long long)1; i <= (long long)n; i++) a[i].d = read();
  memset(dp, -1, sizeof(dp));
  cout << cal(1, 0) << '\n';
}
