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

class B:
    def __init__(self, txt: str):
        self.u: F = None
        self.q: C = None
        self.y: F = None
        self.z: A = None
        self.o: G = None
        self.x: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: G = None
        self.u: G = None
        self.r: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: D = None
        self.v: F = None
        self.y: B = None
        self.q: C = None
        self.r: B = None
        self.u: F = None
        self.w: A = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.w: B = None
        self.o: D = None
        self.r: C = None
        self.p: G = None
        self.x: C = None
        self.v: F = None
        self.q: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.u: F = None
        self.q: C = None
        self.y: F = None
        self.z: A = None
        self.o: G = None
        self.x: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: G = None
        self.u: G = None
        self.r: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: D = None
        self.v: F = None
        self.y: B = None
        self.q: C = None
        self.r: B = None
        self.u: F = None
        self.w: A = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.w: B = None
        self.o: D = None
        self.r: C = None
        self.p: G = None
        self.x: C = None
        self.v: F = None
        self.q: E = None
        self.txt = txt

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

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