class A:
    def __init__(self, txt: str):
        self.q: G = None
        self.r: I = None
        self.t: E = None
        self.u: J = None
        self.x: I = None
        self.w: H = None
        self.s: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: F = None
        self.p: H = None
        self.q: I = None
        self.s: I = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.q: F = None
        self.x: A = None
        self.p: A = None
        self.o: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: A = None
        self.z: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: H = None
        self.q: A = None
        self.o: I = None
        self.w: F = None
        self.v: E = None
        self.r: E = None
        self.y: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: F = None
        self.q: E = None
        self.p: F = None
        self.x: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: B = None
        self.v: D = None
        self.t: F = None
        self.q: C = None
        self.z: C = None
        self.x: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.w: H = None
        self.p: I = None
        self.q: E = None
        self.s: B = None
        self.t: E = None
        self.o: A = None
        self.u: A = None
        self.v: I = None
        self.txt = txt

e = A("e")
c = B("c")
h = C("h")
a = D("a")
i = E("i")
g = F("g")
j = G("j")
b = H("b")
l = I("l")
d = J("d")

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

class B:
    def __init__(self, txt: str):
        self.t: F = None
        self.p: H = None
        self.q: I = None
        self.s: I = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.q: F = None
        self.x: A = None
        self.p: A = None
        self.o: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: A = None
        self.z: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: H = None
        self.q: A = None
        self.o: I = None
        self.w: F = None
        self.v: E = None
        self.r: E = None
        self.y: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: F = None
        self.q: E = None
        self.p: F = None
        self.x: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: B = None
        self.v: D = None
        self.t: F = None
        self.q: C = None
        self.z: C = None
        self.x: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.w: H = None
        self.p: I = None
        self.q: E = None
        self.s: B = None
        self.t: E = None
        self.o: A = None
        self.u: A = None
        self.v: I = None
        self.txt = txt

e = A("e")
c = B("c")
h = C("h")
a = D("a")
i = E("i")
g = F("g")
j = G("j")
b = H("b")
l = I("l")
d = J("d")

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