As you may know, once some people pass their teens, they jokingly only celebrate their 20th or 21st birthday, forever. With some maths skills, that's totally possible - you only need to select the correct number base!

For example, if they turn 32, that's exactly 20 - in base 16... Already 39? That's just 21, in base 19!

Your task is to translate the given age to the much desired 20 (or 21) years, and indicate the number base, in the format specified below.

**Note:** input will be always > 21


### Examples:

```
32  -->  "32? That's just 20, in base 16!"
39  -->  "39? That's just 21, in base 19!"
```

*Hint: if you don't know (enough) about [numeral systems](https://en.wikipedia.org/wiki/Numeral_system) and [radix](https://en.wikipedia.org/wiki/Radix), just observe the pattern!*

---

## My other katas

If you enjoyed this kata then please try [my other katas](https://www.codewars.com/collections/katas-created-by-anter69)! :-)

---

### *Translations are welcome!*

Source: codewars | Difficulty: EASY
Tags: Fundamentals

Mathematics

Starter code: def womens_age(n):
	

Solutions:
def womens_age(n):
	return f"{n}? That's just {20 + n % 2}, in base {n // 2}!"


womens_age = lambda n: f"{n}? That's just 2{n % 2}, in base {n // 2}!"


def womens_age(n):
	return f"{n}? That's just {(21 if n % 2 else 20)}, in base {((n - 1) // 2 if n % 2 else n // 2)}!"


def womens_age(n):
	for i in range(11, 100):
		(a, b) = divmod(n, i)
		if a == 2 and b < 2:
			return f"{n}? That's just {a}{b}, in base {i}!"


def womens_age(n):
	a = 2
	L1 = [0, 1]
	for i in L1:
		x = int((n - L1[i]) / a)
		if n % x == L1[i]:
			base = x
			result = '%d%d' % (a, L1[i])
	return str(n) + "? That's just " + str(result) + ', in base ' + str(base) + '!'


womens_age = lambda Q: f"{Q}? That's just 2{1 & Q}, in base {Q >> 1}!"


def womens_age(n):
	return str(n) + "? That's just 20, in base " + str(n // 2) + '!' if n % 2 == 0 else str(n) + "? That's just 21, in base " + str(n // 2) + '!'