#include <bits/stdc++.h>
using namespace std;
int a, s, n,
    d[101] = {0,  1,  3,  5,  3,  3,  5,  5,  5,  5,  5,  5,  5,  5,  7,
              7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  9,  9,  9,  9,
              9,  9,  9,  9,  9,  9,  9,  9,  9,  9,  9,  9,  11, 11, 11,
              11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11,
              11, 11, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13,
              13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 15, 15, 15, 15,
              15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15},
    f, g, h, j, k, l, i;
int main() {
  cin >> k;
  cout << d[k];
}
