#include using namespace std;int n, m1, m2, s;int b[100], p[100];//b1^p1 * b2^p2 * b3^p3 ...int main() {cin >> n >> m1 >> m2;int...