#include "bits/stdc++.h" using namespace std; typedef long long ll; #define INF (1<<30) #define INFLL (1ll<<60) typedef pair P; typedef pair E; #define MOD (1000000007ll) #define l_ength size void mul_mod(ll& a, ll b){ a *= b; a %= MOD; } void add_mod(ll& a, ll b){ a += b; if(a>MOD){ a -= MOD; } } string input[500500]; bool checknum(int p){ int n,i; n = input[p].l_ength(); for(i=0; i> n; for(i=0; i> v; sum += v; } cout << sum << endl; return 0; }