#include <bits/stdc++.h>
using namespace std;
long long int powers[3000][11];
int main() {
  for (long long int i = 0; i <= 2000; i++) {
    powers[i][0] = 1;
    for (long long int j = 1; j <= 10; j++)
      powers[i][j] = powers[i][j - 1] * (i - 1000);
  }
  long long int a, b, n;
  cin >> a >> b >> n;
  if (a == 0 && b == 0) {
    cout << "1";
    return 0;
  }
  if (a == 0 && b != 0) {
    cout << "No solution";
    return 0;
  }
  if (a != 0 && b == 0) {
    cout << "0";
    return 0;
  }
  double temp = ((double)b) / a;
  if (temp == (int)temp) {
    long long int i;
    for (i = 0; i <= 2000; i++)
      if (powers[i][n] == temp) break;
    if (i <= 2000)
      cout << i - 1000;
    else
      cout << "No solution";
  } else
    cout << "No solution";
  return 0;
}
