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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.p: D = None
        self.t: B = None
        self.q: A = None
        self.r: G = None
        self.txt = txt

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

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.p: D = None
        self.t: B = None
        self.q: A = None
        self.r: G = None
        self.txt = txt

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

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

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