#include <stdio.h>
int main (void) {
int A, B, C;
scanf("%d %d %d", &A
, &B
, &C
); if (A < B && B < C) {
} else if (C < B && B < A) {
} else if (B < A && A < C) {
} else if (A < C && C < B) {
} else if (B < A && A < C) {
} else if (C < A && A < B) {
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbiAodm9pZCkgewoJaW50IEEsIEIsIEM7CgoJc2NhbmYoIiVkICVkICVkIiwgJkEsICZCLCAmQyk7CglpZiAoQSA8IEIgJiYgQiA8IEMpIHsKCSAgIHByaW50ZigiJWQgJWQgJWQiLCBBLCBCLCBDKTsKCX0gZWxzZSBpZiAoQyA8IEIgJiYgQiA8IEEpIHsKCSAgIHByaW50ZigiJWQgJWQgJWQiLCBDLCBCLCBBKTsKCX0gZWxzZSBpZiAoQiA8IEEgJiYgQSA8IEMpIHsKCSAgIHByaW50ZigiJWQgJWQgJWQiLCBCLCBDLCBBKTsKCX0gZWxzZSBpZiAoQSA8IEMgJiYgQyA8IEIpIHsKCSAgIHByaW50ZigiJWQgJWQgJWQiLCBBLCBDLCBCKTsKCX0gZWxzZSBpZiAoQiA8IEEgJiYgQSA8IEMpIHsKCSAgIHByaW50ZigiJWQgJWQgJWQiLCBCLCBBLCBDKTsKCX0gZWxzZSBpZiAoQyA8IEEgJiYgQSA8IEIpIHsKCSAgIHByaW50ZigiJWQgJWQgJWQiLCBDLCBBLCBCKTsKCX0KCXJldHVybiAwOwp9