#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b;
  long long suma = 0, sumb = 0, i = 0;
  cin >> a >> b;
  vector<long long> alfa(a), beta(b);
  for (i = 0; i < a; i++) {
    cin >> alfa[i];
    suma += alfa[i];
  }
  for (i = 0; i < b; i++) {
    cin >> beta[i];
    sumb += beta[i];
  }
  sort(alfa.begin(), alfa.end());
  sort(beta.begin(), beta.end());
  long long resa = suma, resb = sumb;
  for (i = 0; i < b - 1; i++) {
    if (suma > beta[i]) {
      resa += beta[i];
    } else {
      resa += suma;
    }
  }
  for (i = 0; i < a - 1; i++) {
    if (sumb > alfa[i]) {
      resb += alfa[i];
    } else {
      resb += sumb;
    }
  }
  if (resa < resb)
    cout << resa << endl;
  else
    cout << resb << endl;
}
