#include <bits/stdc++.h>
using namespace std;
bool good(int x, int y, int n) { return x >= 0 && y >= 0 && x < n && y < n; }
int main() {
  cin.tie(0);
  cin.sync_with_stdio(0);
  int x;
  cin >> x;
  for (int i = 1; i <= 200; i += 2) {
    int n = i;
    int o = 1;
    int t = (n / 2) * 2;
    int f = (n / 2) * (n / 2);
    int O = 1;
    int T = t;
    int F = f;
    if ((n / 2) % 2 == 0) {
      t = T / 2;
      f = F / 2;
      int X = x;
      if (X % 2) X--;
      while (f) {
        if (X - 4 >= 0) X -= 4;
        f--;
      }
      while (t) {
        if (X - 2 >= 0) X -= 2;
        t--;
      }
      if (X == 0) {
        cout << n;
        return 0;
      }
    } else {
      int X = x;
      o = 0;
      t = ((n / 2) / 2 + 1) * 2;
      f = ((n / 2) * (n / 2)) / 2;
      while (f) {
        if (X - 4 >= 0) X -= 4;
        f--;
      }
      while (t) {
        if (X - 2 >= 0) X -= 2;
        t--;
      }
      if (X == 0) {
        cout << n;
        return 0;
      }
      X = x;
      o = 1;
      t = ((n / 2) / 2) * 2;
      f = (((n / 2) * (n / 2)) / 2) + 1;
      if (X % 2) X--;
      while (f) {
        if (X - 4 >= 0) X -= 4;
        f--;
      }
      while (t) {
        if (X - 2 >= 0) X -= 2;
        t--;
      }
      if (X == 0) {
        cout << n;
        return 0;
      }
    }
  }
  return 0;
}
