#include <iostream>
using namespace std;

int main() {
    int a,b,c,d,e;
    for(a=0;a<=9;a++){
        for(b=0;b<=9;b++){
            for(c=0;c<=9;c++){
                 d = a*100 + b*10 + c;
                 e = b*100 + c*10 + c;
                if((d+e)!=532)
                    continue;
                else
                    cout<<a<<" "<<b<<" "<<c;
            }
        }
    }
    
}