class A:
    def __init__(self, txt: str):
        self.p: G = None
        self.s: E = None
        self.x: D = None
        self.t: D = None
        self.r: E = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.z: G = None
        self.y: A = None
        self.p: I = None
        self.o: H = None
        self.u: G = None
        self.q: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: D = None
        self.u: B = None
        self.r: J = None
        self.o: A = None
        self.w: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: I = None
        self.w: C = None
        self.t: G = None
        self.p: E = None
        self.v: G = None
        self.z: I = None
        self.q: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: I = None
        self.x: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: I = None
        self.o: J = None
        self.x: B = None
        self.r: B = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.x: A = None
        self.q: I = None
        self.p: D = None
        self.v: A = None
        self.u: E = None
        self.t: B = None
        self.z: H = None
        self.r: D = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.z: G = None
        self.y: A = None
        self.p: I = None
        self.o: H = None
        self.u: G = None
        self.q: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: D = None
        self.u: B = None
        self.r: J = None
        self.o: A = None
        self.w: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: I = None
        self.w: C = None
        self.t: G = None
        self.p: E = None
        self.v: G = None
        self.z: I = None
        self.q: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: I = None
        self.x: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: I = None
        self.o: J = None
        self.x: B = None
        self.r: B = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.x: A = None
        self.q: I = None
        self.p: D = None
        self.v: A = None
        self.u: E = None
        self.t: B = None
        self.z: H = None
        self.r: D = None
        self.txt = txt

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

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