class A:
    def __init__(self, txt: str):
        self.q: G = None
        self.r: E = None
        self.z: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: D = None
        self.v: H = None
        self.z: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: J = None
        self.x: A = None
        self.v: C = None
        self.u: F = None
        self.w: J = None
        self.s: F = None
        self.q: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: E = None
        self.t: I = None
        self.w: G = None
        self.v: G = None
        self.o: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: G = None
        self.u: E = None
        self.w: C = None
        self.z: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: B = None
        self.w: A = None
        self.y: A = None
        self.q: B = None
        self.t: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.q: G = None
        self.y: F = None
        self.s: G = None
        self.z: H = None
        self.w: B = None
        self.o: I = None
        self.t: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.p: D = None
        self.v: H = None
        self.z: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: J = None
        self.x: A = None
        self.v: C = None
        self.u: F = None
        self.w: J = None
        self.s: F = None
        self.q: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: E = None
        self.t: I = None
        self.w: G = None
        self.v: G = None
        self.o: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: G = None
        self.u: E = None
        self.w: C = None
        self.z: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: B = None
        self.w: A = None
        self.y: A = None
        self.q: B = None
        self.t: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.q: G = None
        self.y: F = None
        self.s: G = None
        self.z: H = None
        self.w: B = None
        self.o: I = None
        self.t: G = None
        self.txt = txt

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

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