#include using namespace std ; #define mod 1000000007 #define ull unsigned long long int #define ll long long int #define pb push_back inline ull check_prime(ull num){ for(ull i=2 ; i<=ceil(sqrt(num)) ; i++ ){ if(num%i==0){ num/=i ; break; } } return num ; } inline ull give_moves( ull num ){ ull val = 1 ; // cout<<"For num = "< prime ; // ull limit = 1000000+100 ; // compute_primes(limit , prime) ; // Taking input . ull n , ans=0 ; cin>>n ; vector sticks(n) ; for(ull i=0;i>sticks[i] ; } for(ull i=0;i