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

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

class C:
    def __init__(self, txt: str):
        self.x: H = None
        self.s: G = None
        self.y: I = None
        self.v: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: A = None
        self.u: E = None
        self.x: E = None
        self.p: C = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.s: F = None
        self.r: E = None
        self.t: B = None
        self.p: D = None
        self.q: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.u: A = None
        self.o: G = None
        self.txt = txt

i = A("i")
j = B("j")
c = C("c")
f = D("f")
e = E("e")
m = F("m")
l = G("l")
d = H("d")
g = I("g")
k = J("k")

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

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

class C:
    def __init__(self, txt: str):
        self.x: H = None
        self.s: G = None
        self.y: I = None
        self.v: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: A = None
        self.u: E = None
        self.x: E = None
        self.p: C = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.s: F = None
        self.r: E = None
        self.t: B = None
        self.p: D = None
        self.q: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.u: A = None
        self.o: G = None
        self.txt = txt

i = A("i")
j = B("j")
c = C("c")
f = D("f")
e = E("e")
m = F("m")
l = G("l")
d = H("d")
g = I("g")
k = J("k")

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