#include using namespace std; int main() { string n; cin >> n; if(n.at(0) != '1' || n == "1") { cout << -1 << endl; return 0; } for(int i=1; i