#include using namespace std; int main(){ string S; cin>>S; if(S.at(0) != '1'){ cout<<-1<