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