int main(){while(write((Stdio.stdin.gets()/"4")[0]+"1\n"));}