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