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

class B:
    def __init__(self, txt: str):
        self.s: D = None
        self.o: E = None
        self.t: D = None
        self.x: A = None
        self.q: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: F = None
        self.q: J = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.y: B = None
        self.r: C = None
        self.u: J = None
        self.x: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.v: E = None
        self.y: B = None
        self.p: F = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.r: B = None
        self.q: E = None
        self.t: F = None
        self.s: E = None
        self.u: E = None
        self.v: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.s: D = None
        self.o: E = None
        self.t: D = None
        self.x: A = None
        self.q: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: F = None
        self.q: J = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.y: B = None
        self.r: C = None
        self.u: J = None
        self.x: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.v: E = None
        self.y: B = None
        self.p: F = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.r: B = None
        self.q: E = None
        self.t: F = None
        self.s: E = None
        self.u: E = None
        self.v: F = None
        self.txt = txt

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

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