class A:
    def __init__(self, txt: str):
        self.w: H = None
        self.u: D = None
        self.x: G = None
        self.y: G = None
        self.v: E = None
        self.z: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: G = None
        self.p: A = None
        self.u: A = None
        self.v: A = None
        self.z: A = None
        self.s: G = None
        self.w: G = None
        self.r: A = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.p: A = None
        self.y: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: C = None
        self.q: B = None
        self.w: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: D = None
        self.p: E = None
        self.x: G = None
        self.w: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.o: G = None
        self.p: A = None
        self.u: A = None
        self.v: A = None
        self.z: A = None
        self.s: G = None
        self.w: G = None
        self.r: A = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.p: A = None
        self.y: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: C = None
        self.q: B = None
        self.w: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: D = None
        self.p: E = None
        self.x: G = None
        self.w: C = None
        self.txt = txt

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

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