class A:
    def __init__(self, txt: str):
        self.y: I = None
        self.s: F = None
        self.u: D = None
        self.p: H = None
        self.x: D = None
        self.w: H = None
        self.t: H = None
        self.q: F = None
        self.txt = txt

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.z: A = None
        self.r: E = None
        self.x: A = None
        self.o: I = None
        self.q: E = None
        self.t: A = None
        self.p: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: B = None
        self.r: F = None
        self.y: D = None
        self.v: F = None
        self.x: I = None
        self.txt = txt

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

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.z: A = None
        self.r: E = None
        self.x: A = None
        self.o: I = None
        self.q: E = None
        self.t: A = None
        self.p: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: B = None
        self.r: F = None
        self.y: D = None
        self.v: F = None
        self.x: I = None
        self.txt = txt

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

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

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