class A:
    def __init__(self, txt: str):
        self.q: B = None
        self.y: E = None
        self.v: F = None
        self.o: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.y: C = None
        self.v: F = None
        self.w: H = None
        self.t: D = None
        self.o: D = None
        self.p: H = None
        self.x: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: H = None
        self.u: A = None
        self.o: I = None
        self.s: I = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.u: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: G = None
        self.x: F = None
        self.u: G = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: C = None
        self.t: B = None
        self.w: E = None
        self.v: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.y: C = None
        self.v: F = None
        self.w: H = None
        self.t: D = None
        self.o: D = None
        self.p: H = None
        self.x: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: H = None
        self.u: A = None
        self.o: I = None
        self.s: I = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.u: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: G = None
        self.x: F = None
        self.u: G = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: C = None
        self.t: B = None
        self.w: E = None
        self.v: D = None
        self.txt = txt

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

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