c#include <bits/stdc++.h> using namespace std; int main(){ cin.tie(NULL); cout.tie(NULL); ios_base::sync_with_stdio(false); int A; cin >> A; for(int i = 1; i <= A; i++){ if(31 % (i + 1) == 1){ cout << i << "\n"; } } return 0; }
#include <bits/stdc++.h> using namespace std; int main(){ cin.tie(NULL); cout.tie(NULL); ios_base::sync_with_stdio(false); int A; cin >> A; for(int i = 1; i <= A; i++){ if(31 % (i + 1) == 1){ cout << i << "\n"; } } return 0; }