class A:
    def __init__(self, txt: str):
        self.q: H = None
        self.t: I = None
        self.v: G = None
        self.x: D = None
        self.u: D = None
        self.o: E = None
        self.s: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.w: F = None
        self.z: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: E = None
        self.r: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.w: E = None
        self.q: E = None
        self.z: G = None
        self.s: B = None
        self.r: E = None
        self.t: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.w: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.w: F = None
        self.z: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: E = None
        self.r: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.w: E = None
        self.q: E = None
        self.z: G = None
        self.s: B = None
        self.r: E = None
        self.t: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: F = None
        self.txt = txt

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

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