class A:
    def __init__(self, txt: str):
        self.q: H = None
        self.w: F = None
        self.t: C = None
        self.p: I = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.r: J = None
        self.s: B = None
        self.p: A = None
        self.o: C = None
        self.y: E = None
        self.u: E = None
        self.x: F = None
        self.v: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: B = None
        self.r: D = None
        self.o: H = None
        self.z: I = None
        self.p: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: D = None
        self.z: H = None
        self.u: D = None
        self.txt = txt

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

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.r: J = None
        self.s: B = None
        self.p: A = None
        self.o: C = None
        self.y: E = None
        self.u: E = None
        self.x: F = None
        self.v: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: B = None
        self.r: D = None
        self.o: H = None
        self.z: I = None
        self.p: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: D = None
        self.z: H = None
        self.u: D = None
        self.txt = txt

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

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

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

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

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