#include
using namespace std;
int main()
{
for (int i = 0; i <= 100; i++)
{
for(int j = (100 - i) % 3; j <= 100 - i;)
{
if(5 * i + 3 * j + (100 - i -j) / 3 == 100)
{
cout<<" ????????"<<i<<endl;
cout<<" ???????"<<j<<endl;
cout<<" С??????"<<100 - i - j<<endl;
}
j += 3;
}
}
return 0;
}