class A:
    def __init__(self, txt: str):
        self.y: C = None
        self.p: E = None
        self.v: B = None
        self.r: C = None
        self.q: B = None
        self.t: C = None
        self.x: G = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.o: A = None
        self.s: H = None
        self.z: F = None
        self.w: F = None
        self.r: D = None
        self.u: A = None
        self.q: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: E = None
        self.txt = txt

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

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.o: A = None
        self.s: H = None
        self.z: F = None
        self.w: F = None
        self.r: D = None
        self.u: A = None
        self.q: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: E = None
        self.txt = txt

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

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

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

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