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

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

class C:
    def __init__(self, txt: str):
        self.t: H = None
        self.v: I = None
        self.u: H = None
        self.w: B = None
        self.x: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: G = None
        self.p: B = None
        self.q: D = None
        self.o: F = None
        self.x: D = None
        self.z: B = None
        self.t: D = None
        self.v: I = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.t: F = None
        self.z: E = None
        self.r: I = None
        self.x: A = None
        self.y: D = None
        self.v: I = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.t: H = None
        self.v: I = None
        self.u: H = None
        self.w: B = None
        self.x: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: G = None
        self.p: B = None
        self.q: D = None
        self.o: F = None
        self.x: D = None
        self.z: B = None
        self.t: D = None
        self.v: I = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.t: F = None
        self.z: E = None
        self.r: I = None
        self.x: A = None
        self.y: D = None
        self.v: I = None
        self.txt = txt

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

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

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

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