#include<bits/stdc++.h> using namespace std; int main() {cout<<"8"<<endl; cout<<"5"<<endl; return 0; }