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