/*
使用find()函数,看能否找到位置,如果可以找到,就说明包含
*/
#include<bits/stdc++.h>
using namespace std;
int main()
{
string str;
cin>>str;
string::size_type pos;
pos=str.find("12");
if(pos!=string::npos)
cout<<pos<<endl;
}