#include<iostream>
#include<iomanip>
#include<string>
#include<algorithm>
#include<vector>
#include<set>
#include<list>
#include<queue>
#include<math.h>
#include<bitset>
using ll = long long;
using namespace std;

int main(){
    string s;
    cin >> s;
    int n = s.size(), ans = 0;
    set<string> st;
    for (int i = 0; i < (1<<n); i++){
        int f = 0, b = s.size() -1;
        string str="";
        for (int j = 0; j < n; j++){
            if (i & 1<<j) str += s[f++];
            else str += s[b--];
        }
        st.insert(str);
    }
    cout << st.size() << endl;
}