class A:
    def __init__(self, txt: str):
        self.s: G = None
        self.v: D = None
        self.o: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: C = None
        self.u: H = None
        self.w: A = None
        self.r: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: G = None
        self.t: G = None
        self.u: D = None
        self.y: G = None
        self.o: G = None
        self.z: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: G = None
        self.s: H = None
        self.t: A = None
        self.y: G = None
        self.q: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: A = None
        self.z: D = None
        self.s: G = None
        self.u: H = None
        self.p: G = None
        self.t: B = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.p: C = None
        self.u: H = None
        self.w: A = None
        self.r: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: G = None
        self.t: G = None
        self.u: D = None
        self.y: G = None
        self.o: G = None
        self.z: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: G = None
        self.s: H = None
        self.t: A = None
        self.y: G = None
        self.q: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: A = None
        self.z: D = None
        self.s: G = None
        self.u: H = None
        self.p: G = None
        self.t: B = None
        self.txt = txt

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

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

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

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