#include <bits/stdc++.h>
using namespace std;
int main() {
  int lol[200];
  int sum = 4;
  lol[1] = 1;
  for (int i = 2; i <= 100; i++, sum += 4) lol[i] = lol[i - 1] + sum;
  int n;
  while (cin >> n) {
    if (n == 3) {
      cout << 5 << endl;
      return 0;
    }
    for (int i = 1;; i++) {
      if (lol[i] >= n) {
        cout << i * 2 - 1 << endl;
        break;
      }
    }
  }
  return 0;
}
