#include #define ALL(x) (x).begin(), (x).end() #define SZ(x) (int) (x).size() #define pb push_back #define fi first #define se second using namespace std; typedef long long LL; typedef vector VI; typedef pair PII; typedef long double LD; int n, found = 6; LL ALL; int foo(LL mas, int ile = 0) { if(mas == ALL) return ile; if(ile >= found-1) return found; int res = 32; for(int i=1; i> x; n = (int)x.size(); LL mas = 0; for(int i=0; i