class A:
    def __init__(self, txt: str):
        self.y: H = None
        self.o: J = None
        self.p: J = None
        self.t: J = None
        self.u: J = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.y: A = None
        self.r: C = None
        self.o: G = None
        self.z: D = None
        self.v: C = None
        self.x: A = None
        self.p: G = None
        self.u: A = None
        self.t: C = None
        self.s: A = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.t: D = None
        self.y: E = None
        self.z: C = None
        self.s: E = None
        self.x: E = None
        self.o: G = None
        self.p: E = None
        self.w: G = None
        self.u: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: D = None
        self.p: H = None
        self.w: B = None
        self.x: I = None
        self.y: J = None
        self.q: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: J = None
        self.x: E = None
        self.r: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: A = None
        self.q: J = None
        self.o: G = None
        self.v: G = None
        self.r: A = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.y: A = None
        self.r: C = None
        self.o: G = None
        self.z: D = None
        self.v: C = None
        self.x: A = None
        self.p: G = None
        self.u: A = None
        self.t: C = None
        self.s: A = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.t: D = None
        self.y: E = None
        self.z: C = None
        self.s: E = None
        self.x: E = None
        self.o: G = None
        self.p: E = None
        self.w: G = None
        self.u: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: D = None
        self.p: H = None
        self.w: B = None
        self.x: I = None
        self.y: J = None
        self.q: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: J = None
        self.x: E = None
        self.r: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: A = None
        self.q: J = None
        self.o: G = None
        self.v: G = None
        self.r: A = None
        self.txt = txt

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

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

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