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

class B:
    def __init__(self, txt: str):
        self.s: A = None
        self.p: C = None
        self.txt = txt

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

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.s: A = None
        self.p: C = None
        self.txt = txt

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

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

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

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

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

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

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