1 #include <bits/stdc++.h> 2 using namespace std; 3 int main() 4 { 5 int M, N; 6 while (cin >> M >> N) { 7 if (M <= N) { 8 for (int i = M ; i <= N; i++) 9 printf("%d%c", i, i == N ? ' ' : ' ' ); 10 } 11 else { 12 if (M % (N + 1) == 0)cout << "none" << endl; 13 else cout << M % (N + 1) << endl; 14 } 15 } 16 }