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

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

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

class D:
    def __init__(self, txt: str):
        self.v: H = None
        self.w: E = None
        self.t: F = None
        self.r: H = None
        self.x: B = None
        self.q: I = None
        self.p: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: I = None
        self.o: F = None
        self.u: D = None
        self.x: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: B = None
        self.q: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: H = None
        self.w: E = None
        self.v: B = None
        self.y: I = None
        self.t: E = None
        self.x: A = None
        self.z: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: D = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.v: H = None
        self.w: E = None
        self.t: F = None
        self.r: H = None
        self.x: B = None
        self.q: I = None
        self.p: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: I = None
        self.o: F = None
        self.u: D = None
        self.x: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: B = None
        self.q: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: H = None
        self.w: E = None
        self.v: B = None
        self.y: I = None
        self.t: E = None
        self.x: A = None
        self.z: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: D = None
        self.txt = txt

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

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

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