#include using namespace std; using ll = long long; using vll = vector; using vvll = vector; using vvvll = vector; using vb = vector; using vvb = vector; using vvvb = vector; #define all(A) A.begin(),A.end() #define rep(i, n) for (ll i = 0; i < (ll) (n); i++) vvll G; int main() { ll N; cin>>N; ll a=0,b=0,c=0; rep(i,N){ ll A; cin>>A; a+=(A%3!=0); } rep(i,N){ ll A; cin>>A; b+=(A%3!=0); } rep(i,N){ ll A; cin>>A; c+=(A%3!=0); } cout<