#include <iostream>
#include <vector>
using namespace std;
int main()
{
vector<int> a;
for(int i = 100; i < 1000; i++)
{
// 判断百位数
if(i / 100 == 7 || i / 100 == 8 || i / 100 == 9)
{
// 判断十位数
if(i % 100 / 10 == 7 || i % 100 / 10 == 8 || i % 100 / 10 == 9)
{
// 判断个位数
if(i % 10 == 7 || i % 10 == 8 || i % 10 == 9)
{
a.push_back(i);
}
}
}
}
for(auto num : a)
{
int baiwei = num / 100, shiwei = num % 100 / 10, gewei = num % 10;
if(baiwei != shiwei && shiwei != gewei && baiwei != gewei)
{
cout << num << " ";
}
}
return 0;
}