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