#include #define rep(i,a,b) for(int i=(int)(a);i<(int)(b);++i) #define rrep(i,a,b) for(int i=(int)(a);i>=(int)(b);--i) #define fore(i,a) for(auto &i:a) #define all(a) (a).begin(),(a).end() #define rall(a) (a).rbegin(),(a).rend() using namespace std; void _main(); int main(){ cin.tie(0); ios::sync_with_stdio(false); _main(); } using ll = long long; constexpr int inf = INT_MAX / 2; constexpr ll infl = 1LL << 60; templatevoid YES(T condition){ if(condition) cout << "YES" << endl; else cout << "NO" << endl; } templatevoid Yes(T condition){ if(condition) cout << "Yes" << endl; else cout << "No" << endl; } templatevoid POSS(T condition){ if(condition) cout << "POSSIBLE" << endl; else cout << "IMPOSSIBLE" << endl; } templatevoid Poss(T condition){ if(condition) cout << "Possible" << endl; else cout << "Impossible" << endl; } templatebool chmax(T &a, const T &b){ if (abool chmin(T &a, const T &b){ if (bT gcd(T a, T b){ if (b==0){ return a; }else{ return gcd(b, a%b); }} templateT lcm(T a, T b){ return a / gcd(a, b) * b; } void _main() { int A, B, C; cin >> A >> B >> C; if (A + B <= C) { cout << "Impossible" << endl; return; } int ans = 0; if (A + B - C >= 11 && A >= 11) { int t = (A - 1) / 10; A -= t * 10; B += t; } cout << A << ", " << B << endl; if (B <= C) { ans = (A + B) - C; } else { if (A >= C) ans = C; else ans = A + 10 * (B - C); } cout << ans << endl; }