#include <bits/stdc++.h>
int main() {
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
printf("%d\n", 21 - (a + b + c));
return 0;
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CgppbnQgbWFpbigpIHsKICAgIGludCBhLCBiLCBjOwogICAgc2NhbmYoIiVkICVkICVkIiwgJmEsICZiLCAmYyk7CiAgICBwcmludGYoIiVkXG4iLCAyMSAtIChhICsgYiArIGMpKTsKICAgIHJldHVybiAwOwp9Cg==