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