class A:
    def __init__(self, txt: str):
        self.t: H = None
        self.s: B = None
        self.w: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.o: B = None
        self.u: G = None
        self.x: B = None
        self.s: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: I = None
        self.o: G = None
        self.v: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: B = None
        self.q: D = None
        self.w: C = None
        self.r: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: C = None
        self.v: D = None
        self.s: E = None
        self.u: B = None
        self.w: D = None
        self.r: C = None
        self.p: G = None
        self.z: C = None
        self.t: B = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.v: B = None
        self.s: H = None
        self.z: H = None
        self.u: G = None
        self.o: G = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.o: B = None
        self.u: G = None
        self.x: B = None
        self.s: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: I = None
        self.o: G = None
        self.v: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: B = None
        self.q: D = None
        self.w: C = None
        self.r: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: C = None
        self.v: D = None
        self.s: E = None
        self.u: B = None
        self.w: D = None
        self.r: C = None
        self.p: G = None
        self.z: C = None
        self.t: B = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.v: B = None
        self.s: H = None
        self.z: H = None
        self.u: G = None
        self.o: G = None
        self.txt = txt

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

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