class A:
    def __init__(self, txt: str):
        self.s: E = None
        self.o: H = None
        self.v: C = None
        self.t: H = None
        self.x: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.y: H = None
        self.q: I = None
        self.w: A = None
        self.x: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: B = None
        self.r: H = None
        self.t: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: E = None
        self.y: H = None
        self.t: B = None
        self.u: C = None
        self.q: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: I = None
        self.t: H = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.u: F = None
        self.s: D = None
        self.r: D = None
        self.z: B = None
        self.q: E = None
        self.o: G = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.y: H = None
        self.q: I = None
        self.w: A = None
        self.x: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: B = None
        self.r: H = None
        self.t: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: E = None
        self.y: H = None
        self.t: B = None
        self.u: C = None
        self.q: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: I = None
        self.t: H = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.u: F = None
        self.s: D = None
        self.r: D = None
        self.z: B = None
        self.q: E = None
        self.o: G = None
        self.txt = txt

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

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