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

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

class C:
    def __init__(self, txt: str):
        self.o: G = None
        self.t: A = None
        self.r: G = None
        self.z: I = None
        self.u: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: H = None
        self.v: A = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.v: J = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.o: G = None
        self.t: A = None
        self.r: G = None
        self.z: I = None
        self.u: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: H = None
        self.v: A = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.v: J = None
        self.txt = txt

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

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

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

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