class A:
    def __init__(self, txt: str):
        self.s: E = None
        self.r: B = None
        self.y: H = None
        self.w: H = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.x: H = None
        self.w: G = None
        self.o: D = None
        self.p: E = None
        self.q: E = None
        self.z: G = None
        self.r: D = None
        self.t: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: H = None
        self.w: G = None
        self.x: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.r: G = None
        self.q: A = None
        self.v: D = None
        self.txt = txt

m = A("m")
k = B("k")
g = C("g")
b = D("b")
c = E("c")
n = F("n")
d = G("d")
l = H("l")

m.s = c
m.r = k
m.y = l
m.w = l
k.v = b
k.w = b
k.q = n
k.p = n
k.x = g
g.x = l
g.t = l
g.w = d
g.z = d
g.o = b
g.r = b
g.p = c
g.q = c
b.p = m
b.z = d
b.x = k
c.s = l
c.w = d
c.x = k
n.x = l
d.z = b
l.r = d
l.q = m
l.v = b
assert d.z.p.s.s.txt == "
class A:
    def __init__(self, txt: str):
        self.s: E = None
        self.r: B = None
        self.y: H = None
        self.w: H = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.x: H = None
        self.w: G = None
        self.o: D = None
        self.p: E = None
        self.q: E = None
        self.z: G = None
        self.r: D = None
        self.t: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: H = None
        self.w: G = None
        self.x: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.r: G = None
        self.q: A = None
        self.v: D = None
        self.txt = txt

m = A("m")
k = B("k")
g = C("g")
b = D("b")
c = E("c")
n = F("n")
d = G("d")
l = H("l")

m.s = c
m.r = k
m.y = l
m.w = l
k.v = b
k.w = b
k.q = n
k.p = n
k.x = g
g.x = l
g.t = l
g.w = d
g.z = d
g.o = b
g.r = b
g.p = c
g.q = c
b.p = m
b.z = d
b.x = k
c.s = l
c.w = d
c.x = k
n.x = l
d.z = b
l.r = d
l.q = m
l.v = b
assert d.z.p.s.s.txt == "l"