class A:
    def __init__(self, txt: str):
        self.t: D = None
        self.o: I = None
        self.q: J = None
        self.w: D = None
        self.x: F = None
        self.y: E = None
        self.s: C = None
        self.p: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: D = None
        self.x: F = None
        self.u: D = None
        self.v: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: F = None
        self.q: F = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.s: A = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.q: H = None
        self.s: F = None
        self.z: E = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.p: D = None
        self.x: F = None
        self.u: D = None
        self.v: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: F = None
        self.q: F = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.s: A = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.q: H = None
        self.s: F = None
        self.z: E = None
        self.txt = txt

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

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

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