#include int main() { std::size_t A, B, C; std::cin >> A >> B >> C; const std::size_t M = A + B * 10; for (std::size_t i = 1; i <= M; i++) { for (std::size_t a = 0; a <= A; a++) { for (std::size_t b = 0; b <= B; b++) { const std::size_t P = a + b * 10; if (i > P) { continue; } const std::size_t pb = (P - i) / 10, pa = (P - i) % 10; const std::size_t N = (A - a) + (B - b) + pa + pb; if (N == C) { return std::cout << i << std::endl, 0; } } } } std::cout << "Impossible" << std::endl; return 0; }