class A:
    def __init__(self, txt: str):
        self.x: H = None
        self.q: E = None
        self.w: H = None
        self.y: J = None
        self.v: D = None
        self.t: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: A = None
        self.q: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: A = None
        self.v: I = None
        self.r: J = None
        self.u: J = None
        self.q: I = None
        self.z: E = None
        self.o: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: E = None
        self.u: A = None
        self.t: E = None
        self.r: B = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.p: A = None
        self.q: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: A = None
        self.v: I = None
        self.r: J = None
        self.u: J = None
        self.q: I = None
        self.z: E = None
        self.o: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: E = None
        self.u: A = None
        self.t: E = None
        self.r: B = None
        self.txt = txt

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

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

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