class A:
    def __init__(self, txt: str):
        self.x: B = None
        self.s: E = None
        self.o: E = None
        self.z: A = None
        self.t: E = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.y: E = None
        self.o: B = None
        self.z: C = None
        self.x: F = None
        self.t: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: B = None
        self.t: D = None
        self.y: F = None
        self.r: D = None
        self.x: D = None
        self.z: C = None
        self.txt = txt

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

g = A("g")
d = B("d")
h = C("h")
j = D("j")
m = E("m")
a = F("a")
f = A("f")
n = B("n")
i = F("i")
c = C("c")

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

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

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

class D:
    def __init__(self, txt: str):
        self.y: E = None
        self.o: B = None
        self.z: C = None
        self.x: F = None
        self.t: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: B = None
        self.t: D = None
        self.y: F = None
        self.r: D = None
        self.x: D = None
        self.z: C = None
        self.txt = txt

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

g = A("g")
d = B("d")
h = C("h")
j = D("j")
m = E("m")
a = F("a")
f = A("f")
n = B("n")
i = F("i")
c = C("c")

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