class A:
    def __init__(self, txt: str):
        self.u: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: A = None
        self.v: H = None
        self.o: D = None
        self.u: G = None
        self.q: H = None
        self.y: D = None
        self.p: E = None
        self.s: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: A = None
        self.o: D = None
        self.p: F = None
        self.t: H = None
        self.q: G = None
        self.y: G = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.y: D = None
        self.r: H = None
        self.u: F = None
        self.z: F = None
        self.o: D = None
        self.x: A = None
        self.p: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: D = None
        self.w: E = None
        self.y: C = None
        self.s: C = None
        self.r: G = None
        self.v: E = None
        self.u: F = None
        self.x: D = None
        self.txt = txt

j = A("j")
g = B("g")
m = C("m")
l = D("l")
k = E("k")
e = F("e")
i = G("i")
f = H("f")
h = C("h")
n = F("n")

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

class B:
    def __init__(self, txt: str):
        self.w: A = None
        self.v: H = None
        self.o: D = None
        self.u: G = None
        self.q: H = None
        self.y: D = None
        self.p: E = None
        self.s: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: A = None
        self.o: D = None
        self.p: F = None
        self.t: H = None
        self.q: G = None
        self.y: G = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.y: D = None
        self.r: H = None
        self.u: F = None
        self.z: F = None
        self.o: D = None
        self.x: A = None
        self.p: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: D = None
        self.w: E = None
        self.y: C = None
        self.s: C = None
        self.r: G = None
        self.v: E = None
        self.u: F = None
        self.x: D = None
        self.txt = txt

j = A("j")
g = B("g")
m = C("m")
l = D("l")
k = E("k")
e = F("e")
i = G("i")
f = H("f")
h = C("h")
n = F("n")

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