#include<iostream> #include<algorithm> #include<vector> #include<numeric> using namespace std; int main() { int n, m; while (cin>>n){ int error = 1; int sum3 = 0,sum5 = 0,sumoth=0; vector<int> v; for (int i = 0; i < n; i+...