#include <bits/stdc++.h>
using namespace std;
int x;
int main() {
  cin >> x;
  if (x == 3) {
    cout << 5 << endl;
    return 0;
  }
  for (int i = 1; true; i++) {
    if (i % 2 == 0) {
      if (x % 4 == 0) {
        int cur = i / 2 - 1;
        if ((cur * cur + 1) / 2 >= x / 4) {
          cout << i << endl;
          return 0;
        }
      }
      continue;
    }
    int cur = i / 2;
    int now = (cur * cur + 1) / 2 * 4 + cur / 2 * 4 + 1;
    if (x <= now) {
      cout << i << endl;
      return 0;
    }
  }
  return 0;
}
