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

class B:
    def __init__(self, txt: str):
        self.x: D = None
        self.w: D = None
        self.o: E = None
        self.t: C = None
        self.s: H = None
        self.q: E = None
        self.txt = txt

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

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

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.x: D = None
        self.w: D = None
        self.o: E = None
        self.t: C = None
        self.s: H = None
        self.q: E = None
        self.txt = txt

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

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

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

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

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

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

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

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