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

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

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

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

class E:
    def __init__(self, txt: str):
        self.y: B = None
        self.u: H = None
        self.r: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: F = None
        self.o: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: F = None
        self.s: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: D = None
        self.t: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.q: I = None
        self.p: I = None
        self.v: E = None
        self.r: E = None
        self.w: C = None
        self.s: B = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.y: B = None
        self.u: H = None
        self.r: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: F = None
        self.o: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: F = None
        self.s: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: D = None
        self.t: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.q: I = None
        self.p: I = None
        self.v: E = None
        self.r: E = None
        self.w: C = None
        self.s: B = None
        self.txt = txt

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

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