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

class B:
    def __init__(self, txt: str):
        self.x: C = None
        self.v: I = None
        self.q: J = None
        self.s: C = None
        self.o: J = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.s: B = None
        self.u: G = None
        self.p: G = None
        self.r: J = None
        self.t: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: F = None
        self.q: C = None
        self.v: I = None
        self.z: F = None
        self.s: D = None
        self.r: C = None
        self.p: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: B = None
        self.y: A = None
        self.q: A = None
        self.o: I = None
        self.x: C = None
        self.u: E = None
        self.s: A = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.t: E = None
        self.v: A = None
        self.y: E = None
        self.q: H = None
        self.x: C = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.x: C = None
        self.v: I = None
        self.q: J = None
        self.s: C = None
        self.o: J = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.s: B = None
        self.u: G = None
        self.p: G = None
        self.r: J = None
        self.t: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: F = None
        self.q: C = None
        self.v: I = None
        self.z: F = None
        self.s: D = None
        self.r: C = None
        self.p: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: B = None
        self.y: A = None
        self.q: A = None
        self.o: I = None
        self.x: C = None
        self.u: E = None
        self.s: A = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.t: E = None
        self.v: A = None
        self.y: E = None
        self.q: H = None
        self.x: C = None
        self.txt = txt

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

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

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