#include <bits/stdc++.h>
using namespace std;
int solve(int n) {
  if (n == 1) return 1;
  if (n == 2) return 3;
  if (n == 3) return 5;
  if (n == 4) return 3;
  if (n % 4 == 0) {
    for (int i = (4); i < (110); ++i) {
      if (i % 2 == 0) {
        int r = (i - 2) / 2;
        int can = 4 * ((r * r + 1) / 2);
        if (can >= n) return i;
      } else {
        int r = (i - 1) / 2;
        int can = 4 * ((r * r + 1) / 2);
        int app = 4 * (r / 2);
        app++;
        can += app;
        if (n <= can) return i;
      }
    }
  } else {
    for (int i = 3; i < 111; i += 2) {
      int r = (i - 1) / 2;
      int can = 4 * ((r * r + 1) / 2);
      int app = 4 * (r / 2);
      app++;
      can += app;
      if (n <= can) return i;
    }
  }
  return 0;
}
int main() {
  int x;
  while (cin >> x) {
    cout << solve(x) << endl;
  }
  return 0;
}
