#include #include #include using namespace std; int main(){ int n; cin >> n; random_device rnd; while(true){ int a = rnd(), b = n - a; string s = to_string(a), t = to_string(b); if(count(s.begin(), s.end(), '7') == 0 && count(t.begin(), t.end(), '7') == 0){ cout << a << ' ' << b << endl; return 0; } } }