class A:
    def __init__(self, txt: str):
        self.s: H = None
        self.r: D = None
        self.q: I = None
        self.o: E = None
        self.p: D = None
        self.x: G = None
        self.z: D = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.q: F = None
        self.t: I = None
        self.p: I = None
        self.s: E = None
        self.w: C = None
        self.r: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: C = None
        self.p: C = None
        self.w: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.x: C = None
        self.u: D = None
        self.y: I = None
        self.w: C = None
        self.p: H = None
        self.q: C = None
        self.z: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.o: E = None
        self.t: F = None
        self.q: F = None
        self.p: B = None
        self.w: F = None
        self.y: E = None
        self.x: B = None
        self.z: A = None
        self.r: A = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.q: F = None
        self.t: I = None
        self.p: I = None
        self.s: E = None
        self.w: C = None
        self.r: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: C = None
        self.p: C = None
        self.w: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.x: C = None
        self.u: D = None
        self.y: I = None
        self.w: C = None
        self.p: H = None
        self.q: C = None
        self.z: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.o: E = None
        self.t: F = None
        self.q: F = None
        self.p: B = None
        self.w: F = None
        self.y: E = None
        self.x: B = None
        self.z: A = None
        self.r: A = None
        self.txt = txt

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

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