#include <bits/stdc++.h>
using namespace std;
int a[16][2];
int main() {
  memset(a, 0, sizeof(a));
  a[1][0] = 1;
  a[1][1] = 1;
  int i, j;
  for (i = 3; i <= 15; i += 2) {
    a[i][0] = a[i - 2][1] + 1;
    a[i][1] = (i * i + 1) / 2;
  }
  int x;
  while (scanf("%d", &x) != EOF) {
    if (x == 3) {
      cout << "5" << endl;
      continue;
    }
    for (i = 1; i <= 15; i += 2) {
      if (x >= a[i][0] && x <= a[i][1]) {
        cout << i << endl;
        break;
      }
    }
  }
  return 0;
}
