class A:
    def __init__(self, txt: str):
        self.v: F = None
        self.y: B = None
        self.w: B = None
        self.z: F = None
        self.r: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: D = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.s: G = None
        self.p: G = None
        self.o: D = None
        self.r: A = None
        self.u: E = None
        self.q: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: G = None
        self.s: C = None
        self.t: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: D = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.s: G = None
        self.p: G = None
        self.o: D = None
        self.r: A = None
        self.u: E = None
        self.q: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: G = None
        self.s: C = None
        self.t: A = None
        self.txt = txt

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

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