main(n){char s[9];scanf("%s",&s);s[n=strlen(s)-1]-'0'?s[n]='0':(s[n]='1');puts(s);}