class A:
    def __init__(self, txt: str):
        self.x: I = None
        self.q: C = None
        self.y: G = None
        self.o: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: F = None
        self.t: I = None
        self.y: E = None
        self.z: A = None
        self.w: I = None
        self.o: G = None
        self.x: F = None
        self.p: E = None
        self.u: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: G = None
        self.u: I = None
        self.w: B = None
        self.y: H = None
        self.x: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: B = None
        self.y: H = None
        self.q: F = None
        self.v: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: G = None
        self.y: A = None
        self.z: I = None
        self.o: D = None
        self.v: I = None
        self.u: H = None
        self.p: G = None
        self.w: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: E = None
        self.w: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: C = None
        self.w: H = None
        self.p: A = None
        self.t: G = None
        self.q: D = None
        self.x: G = None
        self.s: I = None
        self.z: I = None
        self.y: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: C = None
        self.u: B = None
        self.p: G = None
        self.o: E = None
        self.txt = txt

c = A("c")
e = B("e")
i = C("i")
h = D("h")
g = E("g")
n = F("n")
a = G("a")
l = H("l")
f = I("f")
j = H("j")

c.x = f
c.q = i
c.y = a
c.o = a
e.u = j
i.r = n
i.x = n
i.t = f
i.w = f
i.y = g
i.p = g
i.z = c
i.o = a
i.u = e
h.p = a
h.u = f
h.w = e
h.x = e
h.y = j
g.p = e
g.y = j
g.q = n
g.v = h
n.t = a
n.p = a
n.y = c
n.z = f
n.v = f
n.o = h
n.w = h
n.u = j
a.o = g
a.w = j
l.u = i
l.w = j
l.p = c
l.t = a
l.x = a
l.q = h
l.y = h
l.s = f
l.z = f
f.z = i
f.u = e
f.p = a
f.o = g
j.u = i
j.w = l
j.p = c
j.t = a
j.x = a
j.q = h
j.y = h
j.s = f
j.z = f
assert l.w.w.p.x.p.o.p.txt == "
class A:
    def __init__(self, txt: str):
        self.x: I = None
        self.q: C = None
        self.y: G = None
        self.o: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: F = None
        self.t: I = None
        self.y: E = None
        self.z: A = None
        self.w: I = None
        self.o: G = None
        self.x: F = None
        self.p: E = None
        self.u: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: G = None
        self.u: I = None
        self.w: B = None
        self.y: H = None
        self.x: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: B = None
        self.y: H = None
        self.q: F = None
        self.v: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: G = None
        self.y: A = None
        self.z: I = None
        self.o: D = None
        self.v: I = None
        self.u: H = None
        self.p: G = None
        self.w: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: E = None
        self.w: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: C = None
        self.w: H = None
        self.p: A = None
        self.t: G = None
        self.q: D = None
        self.x: G = None
        self.s: I = None
        self.z: I = None
        self.y: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: C = None
        self.u: B = None
        self.p: G = None
        self.o: E = None
        self.txt = txt

c = A("c")
e = B("e")
i = C("i")
h = D("h")
g = E("g")
n = F("n")
a = G("a")
l = H("l")
f = I("f")
j = H("j")

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