#include using namespace std; int n,x; int v[]={ 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 55 , 56 , 57 , 58 , 59 , 60 , 61 , 62 , 63 , 64 , 2080 , 2081 , 2082 , 2083 , 2084 , 2085 , 2086 , 2087 , 2088 , 2089 }; int main() { cin>>n; int pos=lower_bound(v+1,v+31,n)-v; cout<