class A:
    def __init__(self, txt: str):
        self.t: F = None
        self.v: C = None
        self.z: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.u: H = None
        self.s: F = None
        self.y: A = None
        self.t: A = None
        self.z: A = None
        self.p: D = None
        self.w: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: B = None
        self.p: F = None
        self.t: B = None
        self.w: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.o: C = None
        self.t: E = None
        self.r: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: B = None
        self.p: H = None
        self.s: E = None
        self.z: D = None
        self.w: D = None
        self.u: B = None
        self.x: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: E = None
        self.txt = txt

i = A("i")
g = B("g")
k = C("k")
b = D("b")
m = E("m")
e = F("e")
d = G("d")
j = H("j")

i.t = e
i.v = k
i.z = m
g.x = i
g.q = d
g.y = j
g.o = k
g.p = k
g.t = k
g.s = e
g.v = b
k.u = j
k.s = e
k.y = i
k.t = i
k.z = i
k.p = b
k.w = d
b.r = g
b.t = g
b.p = e
b.w = e
m.r = i
e.o = k
e.t = m
e.r = j
d.q = g
d.u = g
d.x = g
d.p = j
d.s = m
d.z = b
d.w = b
j.x = m
assert d.s.r.v.txt == "
class A:
    def __init__(self, txt: str):
        self.t: F = None
        self.v: C = None
        self.z: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.u: H = None
        self.s: F = None
        self.y: A = None
        self.t: A = None
        self.z: A = None
        self.p: D = None
        self.w: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: B = None
        self.p: F = None
        self.t: B = None
        self.w: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.o: C = None
        self.t: E = None
        self.r: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: B = None
        self.p: H = None
        self.s: E = None
        self.z: D = None
        self.w: D = None
        self.u: B = None
        self.x: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: E = None
        self.txt = txt

i = A("i")
g = B("g")
k = C("k")
b = D("b")
m = E("m")
e = F("e")
d = G("d")
j = H("j")

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