#include <bits/stdc++.h>
using namespace std;
int main() {
  int x;
  cin >> x;
  int rem = x % 4;
  int ans;
  if (x == 1) {
    cout << 1 << endl;
    return 0;
  }
  if (x == 2) {
    cout << 3 << endl;
    return 0;
  }
  if (rem == 0 || rem == 1) {
    int temp = x / 4;
    int sum = 0;
    int i = 1;
    while (true) {
      sum += i;
      if (sum >= temp) break;
      i++;
    }
    ans = 1 + 2 * i;
  } else if (rem == 2 && x <= 10) {
    ans = 1 + 2 * (x / 4);
    if (x == 2) ans++;
    if (x == 6) ans += 2;
  } else if (rem == 2) {
    int temp = (x + 2) / 4;
    int sum = 0;
    int i = 1;
    while (true) {
      sum += i;
      if (sum >= temp) break;
      i++;
    }
    ans = 1 + 2 * i;
  } else {
    if (x <= 11) {
      ans = 5;
      goto z;
    }
    int temp = (x - 11) / 4;
    int sum = 0;
    int i = 1;
    while (true) {
      sum += i + 2;
      i++;
      if (sum >= temp) break;
    }
    ans = 3 + 2 * i;
  }
z:;
  cout << ans << endl;
  return 0;
}
