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

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

class C:
    def __init__(self, txt: str):
        self.r: B = None
        self.x: I = None
        self.w: G = None
        self.s: I = None
        self.t: B = None
        self.v: F = None
        self.o: H = None
        self.p: I = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.t: E = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.w: G = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.r: B = None
        self.x: I = None
        self.w: G = None
        self.s: I = None
        self.t: B = None
        self.v: F = None
        self.o: H = None
        self.p: I = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.t: E = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.w: G = None
        self.txt = txt

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

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