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

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

class C:
    def __init__(self, txt: str):
        self.t: A = None
        self.o: G = None
        self.w: H = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.r: C = None
        self.o: B = None
        self.u: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: E = None
        self.t: F = None
        self.u: B = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.t: A = None
        self.o: G = None
        self.w: H = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.r: C = None
        self.o: B = None
        self.u: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: E = None
        self.t: F = None
        self.u: B = None
        self.txt = txt

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

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

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

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