#include #include using namespace std; int main(int argc, char* argv[]) { string S; cin>>S; if (S[0]!='1' || S.length()<=1){ cout<<-1<