#include <bits/stdc++.h> using namespace std; int main() { int arr[101] = {0}; int n,k; cin >> n >> k; if (k == 0) { cout << n << " " << 1; return 0; } bool od[101] = {0}; int flag = 1; for (int i = 0; i < k; i++) { int a, b; cin >> a ...