class A:
    def __init__(self, txt: str):
        self.t: F = None
        self.z: H = None
        self.v: D = None
        self.q: G = None
        self.s: C = None
        self.o: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: I = None
        self.v: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: E = None
        self.u: E = None
        self.y: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: E = None
        self.q: E = None
        self.y: G = None
        self.x: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: G = None
        self.u: G = None
        self.r: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: G = None
        self.v: E = None
        self.t: E = None
        self.w: H = None
        self.y: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: B = None
        self.z: C = None
        self.y: A = None
        self.w: H = None
        self.s: D = None
        self.u: A = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.p: I = None
        self.v: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: E = None
        self.u: E = None
        self.y: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: E = None
        self.q: E = None
        self.y: G = None
        self.x: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: G = None
        self.u: G = None
        self.r: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: G = None
        self.v: E = None
        self.t: E = None
        self.w: H = None
        self.y: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: B = None
        self.z: C = None
        self.y: A = None
        self.w: H = None
        self.s: D = None
        self.u: A = None
        self.txt = txt

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

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

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

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