Problem: An e-commerce startup pitches to the investors to get funding. They have been functional for n weeks now and also have a website!

For each week they know the number of unique visitors during this week vi and the revenue ci. To evaluate the potential of the startup at some range of weeks from l to r inclusive investors use the minimum among the maximum number of visitors multiplied by 100 and the minimum revenue during this period, that is: 

<image>

The truth is that investors have no idea how to efficiently evaluate the startup, so they are going to pick some k random distinct weeks li and give them to managers of the startup. For each li they should pick some ri ≥ li and report maximum number of visitors and minimum revenue during this period.

Then, investors will calculate the potential of the startup for each of these ranges and take minimum value of p(li, ri) as the total evaluation grade of the startup. Assuming that managers of the startup always report the optimal values of ri for some particular li, i.e., the value such that the resulting grade of the startup is maximized, what is the expected resulting grade of the startup? 

Input

The first line of the input contains two integers n and k (1 ≤ k ≤ n ≤ 1 000 000).

The second line contains n integers vi (1 ≤ vi ≤ 107) — the number of unique visitors during each week.

The third line contains n integers ci (1 ≤ ci ≤ 107) —the revenue for each week.

Output

Print a single real value — the expected grade of the startup. Your answer will be considered correct if its absolute or relative error does not exceed 10 - 6. 

Namely: let's assume that your answer is a, and the answer of the jury is b. The checker program will consider your answer correct, if <image>.

Examples

Input

3 2
3 2 1
300 200 300


Output

133.3333333

Note

Consider the first sample.

If the investors ask for li = 1 onwards, startup will choose ri = 1, such that max number of visitors is 3 and minimum revenue is 300. Thus, potential in this case is min(3·100, 300) = 300.

If the investors ask for li = 2 onwards, startup will choose ri = 3, such that max number of visitors is 2 and minimum revenue is 200. Thus, potential in this case is min(2·100, 200) = 200.

If the investors ask for li = 3 onwards, startup will choose ri = 3, such that max number of visitors is 1 and minimum revenue is 300. Thus, potential in this case is min(1·100, 300) = 100.

We have to choose a set of size 2 equi-probably and take minimum of each. The possible sets here are : {200, 300},{100, 300},{100, 200}, effectively the set of possible values as perceived by investors equi-probably: {200, 100, 100}. Thus, the expected value is (100 + 200 + 100) / 3 = 133.(3).

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:256000000")
using namespace std;
const int INF = 1000001000;
const int mod = 1000 * 1000 * 1000 + 7;
const int mod9 = 1000 * 1000 * 1000 + 9;
const double PI = 3.1415926535897932;
double sqr(double first) { return first * first; };
long double sqr(long double first) { return first * first; };
long long sqr(long long first) { return first * first; };
long long sqr(int first) { return first * 1LL * first; };
long long gcd(long long a, long long b) {
  while (b) a %= b, swap(a, b);
  return a;
}
long long bpm(long long a, long long n = -2, long long m = mod) {
  n = n >= 0 ? n : m + n;
  long long r = 1;
  while (n) {
    if (n & 1) r = (r * a) % m;
    a = (a * a) % m;
    n >>= 1;
  }
  return r;
}
long long dist(long long x1, long long y1, long long x2, long long y2) {
  return sqr(x1 - x2) + sqr(y1 - y2);
}
std::ostream& operator<<(std::ostream& os, pair<int, int> p) {
  return os << "{" << p.first << " " << p.second << "}";
}
const int N = 1000006;
int c[N], v[N];
int t[4 * N];
int t2[4 * N];
void build(int l, int r, int cv) {
  if (l == r) {
    t[cv] = c[l];
    t2[cv] = 100 * v[l];
    return;
  }
  int lv = cv << 1;
  int rv = lv + 1;
  int md = (l + r) >> 1;
  build(l, md, lv);
  build(md + 1, r, rv);
  t[cv] = min(t[lv], t[rv]);
  t2[cv] = max(t2[lv], t2[rv]);
}
int p[N];
pair<int, int> get(int ql, int qr, int l, int r, int v) {
  if (ql == l && qr == r) {
    return {t[v], t2[v]};
  }
  int lv = v << 1;
  int rv = lv + 1;
  int md = (l + r) >> 1;
  if (qr <= md) return get(ql, qr, l, md, lv);
  if (ql > md) return get(ql, qr, md + 1, r, rv);
  pair<int, int> gl = get(ql, md, l, md, lv);
  pair<int, int> gr = get(md + 1, qr, md + 1, r, rv);
  return {min(gl.first, gr.first), max(gl.second, gr.second)};
}
int main() {
  int n, k;
  scanf("%d %d", &n, &k);
  ;
  for (int i = 0; i < n; i++) scanf("%d", &v[i]);
  for (int i = 0; i < n; i++) scanf("%d", &c[i]);
  build(0, n - 1, 1);
  int l = 0;
  for (int i = 0; i < n; i++) {
    l = max(l, i + 1);
    if (l != n) {
      pair<int, int> cur = get(i, l, 0, n - 1, 1);
      while (cur.second < cur.first && l < n) {
        cur.second = max(cur.second, 100 * v[l]);
        cur.first = min(cur.first, c[l]);
        l++;
      }
    }
    l--;
    pair<int, int> ps = get(i, l, 0, n - 1, 1);
    int f = min(ps.first, ps.second);
    p[i] = f;
    if (l + 1 < n) {
      l++;
      ps.first = min(ps.first, c[l]);
      ps.second = max(ps.second, 100 * v[l]);
      f = min(ps.first, ps.second);
      p[i] = max(p[i], f);
      l--;
    }
  }
  sort(p, p + n);
  long double m = 0, per = k;
  for (int i = 0; i < n; i++) {
    if (i) {
      per *= n - k - i + 1;
      per /= p[i - 1];
    }
    per /= n - i;
    per *= p[i];
    m += per;
  }
  cout.precision(7), cout.setf(cout.fixed);
  cout << m << endl;
  return 0;
}