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

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

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

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

class E:
    def __init__(self, txt: str):
        self.s: D = None
        self.z: I = 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.y: I = None
        self.w: H = None
        self.s: E = None
        self.x: J = None
        self.t: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: C = None
        self.w: D = None
        self.z: F = None
        self.o: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: J = None
        self.t: D = None
        self.w: B = None
        self.z: C = None
        self.r: D = None
        self.txt = txt

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

h = A("h")
l = B("l")
e = C("e")
j = D("j")
n = E("n")
a = F("a")
c = G("c")
m = H("m")
d = I("d")
k = J("k")

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.s: D = None
        self.z: I = 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.y: I = None
        self.w: H = None
        self.s: E = None
        self.x: J = None
        self.t: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: C = None
        self.w: D = None
        self.z: F = None
        self.o: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: J = None
        self.t: D = None
        self.w: B = None
        self.z: C = None
        self.r: D = None
        self.txt = txt

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

h = A("h")
l = B("l")
e = C("e")
j = D("j")
n = E("n")
a = F("a")
c = G("c")
m = H("m")
d = I("d")
k = J("k")

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