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

class B:
    def __init__(self, txt: str):
        self.o: H = None
        self.q: D = None
        self.t: D = None
        self.z: G = None
        self.p: D = None
        self.s: G = None
        self.v: H = None
        self.r: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: G = None
        self.v: I = None
        self.p: B = None
        self.y: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.t: G = None
        self.r: D = None
        self.p: C = None
        self.w: C = None
        self.u: C = None
        self.q: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: D = None
        self.u: C = None
        self.v: C = None
        self.y: A = None
        self.o: B = None
        self.q: D = None
        self.txt = txt

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

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

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

k = A("k")
g = B("g")
h = C("h")
b = D("b")
i = E("i")
a = F("a")
l = G("l")
e = H("e")
j = I("j")

k.u = j
k.q = j
g.o = e
g.v = e
g.q = b
g.t = b
g.p = b
g.z = l
g.s = l
g.r = i
h.x = l
h.v = j
h.p = g
h.y = g
b.t = g
b.q = j
b.u = l
i.t = l
i.r = b
i.p = h
i.w = h
i.u = h
i.q = j
a.w = b
a.q = b
a.u = h
a.v = h
a.y = k
a.o = g
l.s = k
l.q = j
l.w = j
l.p = g
l.t = e
l.y = i
l.z = h
e.o = j
j.v = k
assert j.v.q.v.q.v.u.txt == "
class A:
    def __init__(self, txt: str):
        self.u: I = None
        self.q: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: H = None
        self.q: D = None
        self.t: D = None
        self.z: G = None
        self.p: D = None
        self.s: G = None
        self.v: H = None
        self.r: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: G = None
        self.v: I = None
        self.p: B = None
        self.y: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.t: G = None
        self.r: D = None
        self.p: C = None
        self.w: C = None
        self.u: C = None
        self.q: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: D = None
        self.u: C = None
        self.v: C = None
        self.y: A = None
        self.o: B = None
        self.q: D = None
        self.txt = txt

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

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

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

k = A("k")
g = B("g")
h = C("h")
b = D("b")
i = E("i")
a = F("a")
l = G("l")
e = H("e")
j = I("j")

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