class A:
    def __init__(self, txt: str):
        self.t: B = None
        self.p: B = None
        self.r: E = None
        self.y: E = None
        self.s: E = None
        self.x: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: G = None
        self.z: B = None
        self.r: E = None
        self.p: B = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.p: B = None
        self.t: B = None
        self.s: E = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.x: F = None
        self.w: E = None
        self.r: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.v: G = None
        self.z: B = None
        self.r: E = None
        self.p: B = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.p: B = None
        self.t: B = None
        self.s: E = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.x: F = None
        self.w: E = None
        self.r: E = None
        self.txt = txt

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

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