read N
echo $N |
awk '
function gcd(m, n,    t) {
	while (n != 0) {
		t = m
		m = n
		n = t % n
	}
	return m
}
function lcm(m, n,    r) {
	if (m == 0 || n == 0)
		return 0
	r = m * n / gcd(m, n)
	return r < 0 ? -r : r
}
{ print lcm($1, $2) }'
