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

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

class C:
    def __init__(self, txt: str):
        self.t: E = None
        self.y: H = None
        self.x: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: B = None
        self.r: F = None
        self.u: C = None
        self.q: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: H = None
        self.o: B = None
        self.u: E = None
        self.y: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.r: A = None
        self.v: C = None
        self.w: D = None
        self.o: F = None
        self.s: D = None
        self.p: G = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.t: E = None
        self.y: H = None
        self.x: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: B = None
        self.r: F = None
        self.u: C = None
        self.q: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: H = None
        self.o: B = None
        self.u: E = None
        self.y: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.r: A = None
        self.v: C = None
        self.w: D = None
        self.o: F = None
        self.s: D = None
        self.p: G = None
        self.txt = txt

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

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