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

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

class C:
    def __init__(self, txt: str):
        self.x: A = None
        self.q: F = None
        self.u: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: E = None
        self.t: G = None
        self.v: B = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.x: A = None
        self.s: F = None
        self.u: F = None
        self.txt = txt

i = A("i")
e = B("e")
b = C("b")
g = D("g")
d = E("d")
h = F("h")
m = G("m")
c = E("c")
l = B("l")
n = B("n")

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

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

class C:
    def __init__(self, txt: str):
        self.x: A = None
        self.q: F = None
        self.u: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: E = None
        self.t: G = None
        self.v: B = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.x: A = None
        self.s: F = None
        self.u: F = None
        self.txt = txt

i = A("i")
e = B("e")
b = C("b")
g = D("g")
d = E("d")
h = F("h")
m = G("m")
c = E("c")
l = B("l")
n = B("n")

i.w = e
i.q = e
i.z = e
i.x = l
i.t = b
i.y = h
i.v = h
e.w = b
b.x = i
b.u = i
b.q = h
g.x = d
g.t = m
g.v = l
d.y = i
d.s = c
d.p = m
d.x = g
h.q = c
h.v = n
m.x = i
m.s = h
m.u = h
c.y = i
c.s = d
c.p = m
c.x = g
l.w = b
n.w = b
assert l.w.u.x.w.q.txt == "h"