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

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

class C:
    def __init__(self, txt: str):
        self.p: A = None
        self.y: E = None
        self.u: A = None
        self.w: G = None
        self.o: G = None
        self.z: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: A = None
        self.w: G = None
        self.z: F = None
        self.p: I = None
        self.o: H = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.s: C = None
        self.p: J = None
        self.y: C = None
        self.v: A = None
        self.r: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: D = None
        self.o: B = None
        self.p: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: B = None
        self.y: C = None
        self.w: C = None
        self.u: H = None
        self.o: B = None
        self.p: J = None
        self.x: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: C = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.p: A = None
        self.y: E = None
        self.u: A = None
        self.w: G = None
        self.o: G = None
        self.z: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: A = None
        self.w: G = None
        self.z: F = None
        self.p: I = None
        self.o: H = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.s: C = None
        self.p: J = None
        self.y: C = None
        self.v: A = None
        self.r: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: D = None
        self.o: B = None
        self.p: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: B = None
        self.y: C = None
        self.w: C = None
        self.u: H = None
        self.o: B = None
        self.p: J = None
        self.x: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: C = None
        self.txt = txt

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

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