#include <bits/stdc++.h>
using namespace std;
const int mod = 1000000007;
struct node {
  long long int t, i, j, k;
};
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long int t, n, m, k, q, x, a, b, c, d, w;
  cin >> n;
  vector<int> ans(20), vec(200);
  ans[1] = 1;
  ans[0] = 0;
  vec[1] = 1;
  for (int i = 3; i < 20; i += 2) {
    ans[i] += ans[i - 2] + 2 * i - 2;
    if (ans[i] < 200) {
      vec[ans[i]] = i;
    }
  }
  for (int i = 198; i >= 0; i--) {
    if (!vec[i]) vec[i] = vec[i + 1];
  }
  vec[3] = 5;
  cout << vec[n] << "\n";
  return 0;
}
