class A:
    def __init__(self, txt: str):
        self.v: G = None
        self.u: I = None
        self.q: F = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.p: A = None
        self.v: B = None
        self.y: A = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.t: H = None
        self.o: E = None
        self.v: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.t: E = None
        self.o: I = None
        self.v: A = None
        self.x: A = None
        self.u: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: C = None
        self.x: B = None
        self.y: E = None
        self.p: F = None
        self.t: A = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.p: A = None
        self.v: B = None
        self.y: A = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.t: H = None
        self.o: E = None
        self.v: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.t: E = None
        self.o: I = None
        self.v: A = None
        self.x: A = None
        self.u: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: C = None
        self.x: B = None
        self.y: E = None
        self.p: F = None
        self.t: A = None
        self.txt = txt

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

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