class A:
    def __init__(self, txt: str):
        self.p: H = None
        self.y: D = None
        self.x: F = None
        self.s: B = None
        self.v: B = None
        self.o: B = None
        self.r: D = None
        self.q: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: J = None
        self.t: G = None
        self.r: C = None
        self.w: G = None
        self.z: J = None
        self.s: E = None
        self.y: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: A = None
        self.t: E = None
        self.o: A = None
        self.txt = txt

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

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.w: D = None
        self.r: A = None
        self.x: H = None
        self.s: C = None
        self.q: D = None
        self.v: B = None
        self.t: F = None
        self.z: C = None
        self.y: H = None
        self.o: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.u: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.p: J = None
        self.t: G = None
        self.r: C = None
        self.w: G = None
        self.z: J = None
        self.s: E = None
        self.y: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: A = None
        self.t: E = None
        self.o: A = None
        self.txt = txt

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

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.w: D = None
        self.r: A = None
        self.x: H = None
        self.s: C = None
        self.q: D = None
        self.v: B = None
        self.t: F = None
        self.z: C = None
        self.y: H = None
        self.o: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.u: G = None
        self.txt = txt

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

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