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

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

class C:
    def __init__(self, txt: str):
        self.q: G = None
        self.o: F = None
        self.y: D = None
        self.u: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: I = None
        self.x: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: I = None
        self.t: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: B = None
        self.p: B = None
        self.x: I = None
        self.q: E = None
        self.r: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: F = None
        self.v: I = None
        self.q: A = None
        self.p: F = None
        self.x: C = None
        self.r: A = None
        self.z: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: H = None
        self.q: E = None
        self.x: C = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.q: G = None
        self.o: F = None
        self.y: D = None
        self.u: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: I = None
        self.x: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: I = None
        self.t: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: B = None
        self.p: B = None
        self.x: I = None
        self.q: E = None
        self.r: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: F = None
        self.v: I = None
        self.q: A = None
        self.p: F = None
        self.x: C = None
        self.r: A = None
        self.z: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: H = None
        self.q: E = None
        self.x: C = None
        self.txt = txt

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

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