class A:
    def __init__(self, txt: str):
        self.t: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: C = None
        self.x: A = None
        self.q: B = None
        self.v: C = None
        self.p: E = None
        self.r: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: C = None
        self.v: D = None
        self.x: E = None
        self.txt = txt

k = A("k")
h = B("h")
b = C("b")
l = D("l")
e = E("e")
c = F("c")
j = E("j")
d = C("d")
g = E("g")
i = A("i")

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

class B:
    def __init__(self, txt: str):
        self.x: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: C = None
        self.x: A = None
        self.q: B = None
        self.v: C = None
        self.p: E = None
        self.r: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: C = None
        self.v: D = None
        self.x: E = None
        self.txt = txt

k = A("k")
h = B("h")
b = C("b")
l = D("l")
e = E("e")
c = F("c")
j = E("j")
d = C("d")
g = E("g")
i = A("i")

k.t = l
h.x = k
b.x = h
b.r = h
b.s = j
b.t = l
b.w = d
b.z = c
l.z = b
l.x = i
l.q = h
l.v = d
l.p = e
l.r = j
e.s = l
e.p = h
e.w = h
e.z = c
e.r = b
c.u = d
c.v = l
c.x = e
j.s = l
j.p = h
j.w = h
j.z = c
j.r = b
d.x = h
d.r = h
d.s = g
d.t = l
d.w = b
d.z = c
g.s = l
g.p = h
g.w = h
g.z = c
g.r = d
i.t = l
assert d.s.s.v.s.z.u.x.x.t.txt == "l"