class A:
    def __init__(self, txt: str):
        self.o: D = None
        self.u: H = None
        self.z: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: G = None
        self.t: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: B = None
        self.x: A = None
        self.t: D = None
        self.v: G = None
        self.o: A = None
        self.q: H = None
        self.s: B = None
        self.z: G = None
        self.w: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: G = None
        self.y: E = None
        self.p: G = None
        self.s: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: A = None
        self.w: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: H = None
        self.s: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: D = None
        self.z: F = None
        self.x: B = None
        self.o: H = None
        self.r: B = None
        self.w: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: F = None
        self.t: I = None
        self.x: A = None
        self.o: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: E = None
        self.txt = txt

e = A("e")
c = B("c")
d = C("d")
b = D("b")
j = E("j")
h = F("h")
l = G("l")
k = H("k")
n = I("n")
f = C("f")

e.o = b
e.u = k
e.z = j
c.w = l
c.t = e
d.r = c
d.s = c
d.x = e
d.o = e
d.t = b
d.v = l
d.z = l
d.q = k
d.w = k
b.o = l
b.p = l
b.y = j
b.s = e
j.t = e
j.w = b
h.q = k
h.s = f
l.u = b
l.z = h
l.x = c
l.r = c
l.o = k
l.w = f
k.w = h
k.t = n
k.o = n
k.x = e
n.y = j
f.r = c
f.s = c
f.x = e
f.o = e
f.t = b
f.v = l
f.z = l
f.q = k
f.w = k
assert h.q.x.o.o.o.txt == "
class A:
    def __init__(self, txt: str):
        self.o: D = None
        self.u: H = None
        self.z: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: G = None
        self.t: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: B = None
        self.x: A = None
        self.t: D = None
        self.v: G = None
        self.o: A = None
        self.q: H = None
        self.s: B = None
        self.z: G = None
        self.w: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: G = None
        self.y: E = None
        self.p: G = None
        self.s: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: A = None
        self.w: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: H = None
        self.s: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: D = None
        self.z: F = None
        self.x: B = None
        self.o: H = None
        self.r: B = None
        self.w: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: F = None
        self.t: I = None
        self.x: A = None
        self.o: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: E = None
        self.txt = txt

e = A("e")
c = B("c")
d = C("d")
b = D("b")
j = E("j")
h = F("h")
l = G("l")
k = H("k")
n = I("n")
f = C("f")

e.o = b
e.u = k
e.z = j
c.w = l
c.t = e
d.r = c
d.s = c
d.x = e
d.o = e
d.t = b
d.v = l
d.z = l
d.q = k
d.w = k
b.o = l
b.p = l
b.y = j
b.s = e
j.t = e
j.w = b
h.q = k
h.s = f
l.u = b
l.z = h
l.x = c
l.r = c
l.o = k
l.w = f
k.w = h
k.t = n
k.o = n
k.x = e
n.y = j
f.r = c
f.s = c
f.x = e
f.o = e
f.t = b
f.v = l
f.z = l
f.q = k
f.w = k
assert h.q.x.o.o.o.txt == "k"