#include <iostream>
using namespace std;
int main()
{
int c;
int a, b;
for(a=0;a<=9;a++)
for (b = 0; b <= 9; b++)
{
c = 60000 + 7000 + a * 100 + b * 10 + 8;
if (c % 78 == 0 && c % 67 == 0)
cout << c;
}
return 0;
}
```c++
```