#include using namespace std; using ll = unsigned long long; void solve(){ ll M; cin >> M; vector d(10); ll ans = 0; for(ll i = 1;i<=9;i++){ ll d; cin >> d; for(ll j = 0;j> T; while(T--)solve(); cout << flush; }