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

class B:
    def __init__(self, txt: str):
        self.q: H = None
        self.o: C = None
        self.t: H = None
        self.v: G = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.o: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: A = None
        self.s: I = None
        self.w: E = None
        self.z: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: D = None
        self.y: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: D = None
        self.y: E = None
        self.w: D = None
        self.x: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: H = None
        self.z: A = None
        self.q: C = None
        self.p: B = None
        self.y: I = None
        self.o: E = None
        self.r: D = None
        self.v: A = None
        self.t: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.q: H = None
        self.o: C = None
        self.t: H = None
        self.v: G = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.o: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: A = None
        self.s: I = None
        self.w: E = None
        self.z: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: D = None
        self.y: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: D = None
        self.y: E = None
        self.w: D = None
        self.x: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: H = None
        self.z: A = None
        self.q: C = None
        self.p: B = None
        self.y: I = None
        self.o: E = None
        self.r: D = None
        self.v: A = None
        self.t: E = None
        self.txt = txt

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

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