include "$/io.zr" func main[] : i64 n := 600851475143 f := 2 while f * f <= n if n % f == 0 n = n / f else f += 1 io.println_i64(n)