#include <bits/stdc++.h>
using namespace std;
const double TOLL = 1e-9;
int ans[1001];
int main() {
  ans[0] = 0;
  ans[1] = 1;
  ans[2] = 3;
  ans[3] = 5;
  ans[4] = ans[5] = 3;
  int now = 5;
  int num = 6;
  int runfor = 8;
  while (num < 101) {
    for (int i = 0; i < runfor; i++) {
      ans[num] = now;
      num++;
    }
    runfor += 4;
    now += 2;
  }
  int x;
  while (cin >> x) {
    cout << ans[x] << endl;
  }
}
