class A:
    def __init__(self, txt: str):
        self.s: B = None
        self.t: G = None
        self.q: G = None
        self.y: B = None
        self.u: E = None
        self.r: F = None
        self.z: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.r: B = None
        self.w: A = None
        self.u: D = None
        self.v: G = None
        self.x: G = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.u: F = None
        self.t: F = None
        self.p: A = None
        self.q: H = None
        self.v: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: C = None
        self.y: F = None
        self.s: D = None
        self.o: D = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.r: B = None
        self.w: A = None
        self.u: D = None
        self.v: G = None
        self.x: G = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.u: F = None
        self.t: F = None
        self.p: A = None
        self.q: H = None
        self.v: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: C = None
        self.y: F = None
        self.s: D = None
        self.o: D = None
        self.txt = txt

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

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