class A:
    def __init__(self, txt: str):
        self.u: D = None
        self.r: C = None
        self.q: H = None
        self.w: B = None
        self.z: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: D = None
        self.t: F = None
        self.v: F = None
        self.y: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: H = None
        self.z: H = None
        self.p: D = None
        self.w: D = None
        self.y: F = None
        self.x: B = None
        self.s: A = None
        self.o: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: G = None
        self.x: B = None
        self.p: B = None
        self.u: B = None
        self.s: B = None
        self.y: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: A = None
        self.o: A = None
        self.w: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: D = None
        self.v: D = None
        self.y: D = None
        self.u: G = None
        self.x: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: H = None
        self.x: A = None
        self.t: B = None
        self.q: F = None
        self.y: D = None
        self.txt = txt

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

b = A("b")
a = B("a")
j = C("j")
m = D("m")
g = E("g")
e = F("e")
l = G("l")
c = H("c")
i = D("i")

b.u = i
b.r = j
b.q = c
b.w = a
b.z = a
a.o = m
a.t = e
a.v = e
a.y = e
j.v = c
j.z = c
j.o = c
j.p = m
j.w = i
j.y = e
j.x = a
j.s = b
m.r = l
m.x = a
m.p = a
m.u = a
m.s = a
m.y = g
g.y = b
g.o = b
g.w = e
e.p = i
e.v = m
e.y = m
e.u = l
e.x = l
l.o = c
l.x = b
l.t = a
l.q = e
l.y = m
c.z = g
i.r = l
i.x = a
i.p = a
i.u = a
i.s = a
i.y = g
assert j.w.r.q.txt == "
class A:
    def __init__(self, txt: str):
        self.u: D = None
        self.r: C = None
        self.q: H = None
        self.w: B = None
        self.z: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: D = None
        self.t: F = None
        self.v: F = None
        self.y: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: H = None
        self.z: H = None
        self.p: D = None
        self.w: D = None
        self.y: F = None
        self.x: B = None
        self.s: A = None
        self.o: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: G = None
        self.x: B = None
        self.p: B = None
        self.u: B = None
        self.s: B = None
        self.y: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: A = None
        self.o: A = None
        self.w: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: D = None
        self.v: D = None
        self.y: D = None
        self.u: G = None
        self.x: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: H = None
        self.x: A = None
        self.t: B = None
        self.q: F = None
        self.y: D = None
        self.txt = txt

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

b = A("b")
a = B("a")
j = C("j")
m = D("m")
g = E("g")
e = F("e")
l = G("l")
c = H("c")
i = D("i")

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