#include <bits/stdc++.h>
using namespace std;
const int MAXN = 1111;
const int INF = 0x7f7f7f7f;
int cases;
int ans[111];
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int x;
  cin >> x;
  ans[1] = 1, ans[2] = 3, ans[3] = 5, ans[4] = 3, ans[5] = 3;
  for (int i = 6; i <= 13; i++) ans[i] = 5;
  for (int i = 14; i <= 25; i++) ans[i] = 7;
  for (int i = 26; i <= 41; i++) ans[i] = 9;
  for (int i = 42; i <= 61; i++) ans[i] = 11;
  for (int i = 62; i <= 85; i++) ans[i] = 13;
  for (int i = 86; i <= 100; i++) ans[i] = 15;
  cout << ans[x] << '\n';
}
