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