class A:
    def __init__(self, txt: str):
        self.v: D = None
        self.o: J = None
        self.q: H = None
        self.t: D = None
        self.p: J = None
        self.r: D = None
        self.z: E = None
        self.x: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: I = None
        self.x: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: I = None
        self.v: F = None
        self.x: J = None
        self.w: J = None
        self.y: A = None
        self.u: G = None
        self.r: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: H = None
        self.y: C = None
        self.r: G = None
        self.x: E = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.x: A = None
        self.txt = txt

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

l = A("l")
g = B("g")
k = C("k")
b = D("b")
f = E("f")
a = F("a")
n = G("n")
j = H("j")
h = I("h")
d = J("d")

l.v = b
l.t = b
l.r = b
l.o = d
l.p = d
l.q = j
l.x = j
l.z = f
g.s = h
g.x = j
k.z = h
k.v = a
k.x = d
k.w = d
k.y = l
k.r = l
k.u = n
b.t = j
b.y = k
b.r = n
b.x = f
f.s = b
f.v = n
f.u = a
f.y = l
f.z = k
f.q = k
a.s = g
a.x = g
a.r = g
a.u = b
a.p = d
a.z = j
a.y = l
a.v = k
a.t = n
a.o = h
n.u = h
j.w = k
h.x = l
d.r = b
assert b.y.x.r.t.w.txt == "
class A:
    def __init__(self, txt: str):
        self.v: D = None
        self.o: J = None
        self.q: H = None
        self.t: D = None
        self.p: J = None
        self.r: D = None
        self.z: E = None
        self.x: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: I = None
        self.x: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: I = None
        self.v: F = None
        self.x: J = None
        self.w: J = None
        self.y: A = None
        self.u: G = None
        self.r: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: H = None
        self.y: C = None
        self.r: G = None
        self.x: E = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.x: A = None
        self.txt = txt

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

l = A("l")
g = B("g")
k = C("k")
b = D("b")
f = E("f")
a = F("a")
n = G("n")
j = H("j")
h = I("h")
d = J("d")

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