#include <bits/stdc++.h>
using namespace std;
const double eps = 1e-7;
const double PI = acos(-1.0);
const int oo = 0x7f7f7f7f;
inline double sqr(double a) { return a * a; }
inline int max(int a, int b) {
  if (a > b) return a;
  return b;
}
inline int min(int a, int b) {
  if (a < b) return a;
  return b;
}
template <class T>
inline T lowbit(T a) {
  return a & -a;
}
template <class T>
inline void checkmax(T &a, T b) {
  if (a < b) a = b;
}
template <class T>
inline void checkmin(T &a, T b) {
  if (a == -1 || a > b) a = b;
}
const int maxn = 128;
int ss[maxn];
void init() {
  for (int i = 1; i <= 30; i++) {
    if (i & 1) ss[i] = ((i + 1) / 2 * (i + 1) / 2) + i / 2 * (i / 2);
    if (ss[i] >= 100) break;
  }
}
int main() {
  int n;
  init();
  while (cin >> n) {
    if (n == 3) {
      puts("5");
      continue;
    }
    int i;
    for (i = 1;; i += 2) {
      if (ss[i] >= n) break;
    }
    cout << i << endl;
  }
  return 0;
}
