class A:
    def __init__(self, txt: str):
        self.o: C = None
        self.p: C = None
        self.w: H = None
        self.v: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: I = None
        self.p: G = None
        self.q: C = None
        self.x: C = None
        self.t: I = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.o: J = None
        self.w: D = None
        self.s: A = None
        self.x: F = None
        self.r: H = None
        self.t: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: J = None
        self.q: J = None
        self.v: E = None
        self.w: I = None
        self.t: I = None
        self.x: I = None
        self.y: A = None
        self.r: I = None
        self.p: J = None
        self.u: A = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.r: I = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: I = None
        self.p: G = None
        self.q: C = None
        self.x: C = None
        self.t: I = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.o: J = None
        self.w: D = None
        self.s: A = None
        self.x: F = None
        self.r: H = None
        self.t: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: J = None
        self.q: J = None
        self.v: E = None
        self.w: I = None
        self.t: I = None
        self.x: I = None
        self.y: A = None
        self.r: I = None
        self.p: J = None
        self.u: A = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.r: I = None
        self.txt = txt

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

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