#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 3;
const int NN = 35;
long long mm[N + 10][NN + 10];
int dp[N + 10][NN + 10];
long long n;
bool control1, control2;
void build() {
  memset(dp, -1, sizeof(dp));
  bool here = false;
  for (int i = int(1); i < int(N); ++i)
    for (int j = int(1); j < int(NN); ++j) {
      if (j == 1)
        mm[i][j] = i, here = false;
      else
        mm[i][j] = mm[i][j - 1] * i;
      if (mm[i][j] >= n) here = true;
      if (here) dp[i][j] = 1;
    }
}
bool ziggy(int a, int b) {
  if (a == 1 && b == NN) control1 = true;
  if (a == N && b == 1) control2 = true;
  if (dp[a][b] != -1) return dp[a][b];
  return dp[a][b] = 1 - (ziggy(a + 1, b) && ziggy(a, b + 1));
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  long long a, b;
  bool first = (a + b) & 1;
  scanf("%lld%lld%lld", &a, &b, &n);
  build();
  dp[1][NN] = 1;
  dp[N][1] = 1;
  bool f = ziggy(a, b);
  if (control1) {
    printf("Missing\n");
    return 0;
  }
  if (control2) {
    if ((a & 1) != (n & 1))
      printf("Stas\n");
    else
      printf("Masha\n");
    return 0;
  }
  if (f)
    printf("Masha\n");
  else
    printf("Stas\n");
  return 0;
}
