import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
int code;
int count = 0;
int n[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
while ((code = br.read()) != -1) {
if (code >= 48 && code <= 57) n[code - 48]++;
}
for (int i = 0; i < 10; i++) {
if (n[i] == 0) count++;
}
for (int i = 0; i < 10; i++) {
if (n
[i
] == 0) System.
out.
print(i
+ " "); }
}
}
aW1wb3J0IGphdmEuaW8uQnVmZmVyZWRSZWFkZXI7CmltcG9ydCBqYXZhLmlvLklucHV0U3RyZWFtUmVhZGVyOwpwdWJsaWMgY2xhc3MgTWFpbiB7CglwdWJsaWMgc3RhdGljIHZvaWQgbWFpbiAoU3RyaW5nW10gYXJncykgdGhyb3dzIEV4Y2VwdGlvbnsKCQlpbnQgY29kZTsKCQlpbnQgY291bnQgPSAwOwoJCWludCBuW10gPSB7MCwgMCwgMCwgMCwgMCwgMCwgMCwgMCwgMCwgMH07CgkJQnVmZmVyZWRSZWFkZXIgYnIgPSBuZXcgQnVmZmVyZWRSZWFkZXIobmV3IElucHV0U3RyZWFtUmVhZGVyKFN5c3RlbS5pbikpOwoJCXdoaWxlICgoY29kZSA9IGJyLnJlYWQoKSkgIT0gLTEpIHsKCQkJaWYgKGNvZGUgPj0gNDggJiYgY29kZSA8PSA1Nykgbltjb2RlIC0gNDhdKys7CgkJfQoJCWZvciAoaW50IGkgPSAwOyBpIDwgMTA7IGkrKykgewogICAgICAgIAlpZiAobltpXSA9PSAwKSBjb3VudCsrOwoJCX0KCQlTeXN0ZW0ub3V0LnByaW50bG4oY291bnQpOwoJCWZvciAoaW50IGkgPSAwOyBpIDwgMTA7IGkrKykgewoJCQlpZiAobltpXSA9PSAwKSBTeXN0ZW0ub3V0LnByaW50KGkgKyAiICIpOwoJCX0KCX0KfQ==