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

class B:
    def __init__(self, txt: str):
        self.q: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: B = None
        self.y: H = None
        self.t: I = None
        self.z: D = None
        self.r: F = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.x: D = None
        self.w: D = None
        self.q: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: F = None
        self.v: B = None
        self.s: A = None
        self.o: H = None
        self.p: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: A = None
        self.z: I = None
        self.v: B = None
        self.w: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: A = None
        self.v: E = None
        self.o: H = None
        self.z: D = None
        self.w: E = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.q: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: B = None
        self.y: H = None
        self.t: I = None
        self.z: D = None
        self.r: F = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.x: D = None
        self.w: D = None
        self.q: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: F = None
        self.v: B = None
        self.s: A = None
        self.o: H = None
        self.p: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: A = None
        self.z: I = None
        self.v: B = None
        self.w: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: A = None
        self.v: E = None
        self.o: H = None
        self.z: D = None
        self.w: E = None
        self.txt = txt

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

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

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