class A:
    def __init__(self, txt: str):
        self.x: D = None
        self.p: D = None
        self.s: F = None
        self.w: F = None
        self.txt = txt

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

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

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

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

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

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

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

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

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

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

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

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

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

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