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

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

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

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

class E:
    def __init__(self, txt: str):
        self.y: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: B = None
        self.o: E = None
        self.r: C = None
        self.z: E = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.y: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: B = None
        self.o: E = None
        self.r: C = None
        self.z: E = None
        self.txt = txt

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

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