#include <bits/stdc++.h>
using namespace std;
long long int n, N[5010], e, s, X[5010], A[5010], B[5010], C[5010], D[5010];
long long int total, t, selection;
long long int Dis(long long int x, long long int y) {
  return labs(X[x] - X[y]) + (x > y ? C[x] + B[y] : D[x] + A[y]);
}
int main() {
  ios_base::sync_with_stdio(0);
  cin >> n >> s >> e;
  for (int i = 1; i <= n; i++) cin >> X[i];
  for (int i = 1; i <= n; i++) cin >> A[i];
  for (int i = 1; i <= n; i++) cin >> B[i];
  for (int i = 1; i <= n; i++) cin >> C[i];
  for (int i = 1; i <= n; i++) cin >> D[i];
  N[s] = e;
  total = Dis(s, e);
  for (int i = 1; i <= n; i++) {
    if (i == s || i == e) continue;
    long long int l = LLONG_MAX;
    for (int j = s; j != e; j = N[j]) {
      t = Dis(j, i) + Dis(i, N[j]) - Dis(j, N[j]);
      if (t < l) {
        l = t;
        selection = j;
      }
    }
    total += l;
    N[i] = N[selection];
    N[selection] = i;
  }
  cout << total;
  return 0;
}
