def METHOD_NAME(input_m):
  residual = copy.copy(input_m)
  return_m = input_m
  while (residual%2==0): residual//=2;
  while (residual%3==0): residual//=3;
  while (residual%5==0): residual//=5;
  if (residual>1):
    return_m = METHOD_NAME(return_m+1);
  return return_m;