#include <stdio.h>
int main() {
    int i = 0, len;
    char s[20], d[20];
    while ((s[i] = getchar()) != '\n')
        i++;
    len = i;
    for (i = 0; i < len; i++) {
        if ((s[i] - '0') % 2 == 0)
            d[i] = '0';
        if ((s[i] - '0') % 2 == 1)
            d[i] = '1';
    }
    for (i = 0; i < len; i++) {
        if (d[i] != '0') {
            for (int j = i; j < len; j++) {
                printf("%c", d[j]);
            }
            return 0;
        } else
            continue;
    }
    printf("0");
}