#include <bits/stdc++.h>
using namespace std;
int CC(int n) {
  if (n == 1) return 1;
  return (n / 2) * 4;
}
int main() {
  int x;
  cin >> x;
  if (x == 1)
    cout << 1;
  else if (x == 3)
    cout << 5;
  else {
    int n = 1;
    if (x % 2 == 1) {
      x--;
    }
    while (x) {
      n += 2;
      int tt = CC(n);
      if (x <= tt) {
        if (tt % 4 == 2)
          cout << n + 2;
        else
          cout << n;
        x = 0;
      } else {
        x -= tt;
      }
    }
  }
}
