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

class B:
    def __init__(self, txt: str):
        self.q: F = None
        self.y: I = None
        self.z: E = None
        self.o: G = None
        self.v: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: D = None
        self.p: B = None
        self.w: A = None
        self.s: F = None
        self.o: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: C = None
        self.t: G = None
        self.z: G = None
        self.x: E = None
        self.r: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.v: I = None
        self.z: D = None
        self.u: B = None
        self.t: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: F = None
        self.u: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.q: F = None
        self.y: I = None
        self.z: E = None
        self.o: G = None
        self.v: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: D = None
        self.p: B = None
        self.w: A = None
        self.s: F = None
        self.o: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: C = None
        self.t: G = None
        self.z: G = None
        self.x: E = None
        self.r: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.v: I = None
        self.z: D = None
        self.u: B = None
        self.t: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: F = None
        self.u: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: C = None
        self.txt = txt

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

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