class A:
    def __init__(self, txt: str):
        self.s: C = None
        self.w: F = None
        self.u: G = None
        self.r: D = None
        self.o: G = None
        self.x: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.s: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: D = None
        self.q: G = None
        self.r: G = None
        self.x: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.v: B = None
        self.q: C = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.s: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: D = None
        self.q: G = None
        self.r: G = None
        self.x: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.v: B = None
        self.q: C = None
        self.txt = txt

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

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