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

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

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

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

class E:
    def __init__(self, txt: str):
        self.p: F = None
        self.s: G = None
        self.w: B = None
        self.z: C = None
        self.v: A = None
        self.r: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: E = None
        self.z: A = None
        self.r: E = None
        self.y: B = None
        self.v: B = None
        self.s: H = None
        self.p: C = None
        self.w: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.y: C = None
        self.txt = txt

n = A("n")
l = B("l")
i = C("i")
e = D("e")
d = E("d")
a = F("a")
g = G("g")
j = H("j")
c = B("c")

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.p: F = None
        self.s: G = None
        self.w: B = None
        self.z: C = None
        self.v: A = None
        self.r: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: E = None
        self.z: A = None
        self.r: E = None
        self.y: B = None
        self.v: B = None
        self.s: H = None
        self.p: C = None
        self.w: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.y: C = None
        self.txt = txt

n = A("n")
l = B("l")
i = C("i")
e = D("e")
d = E("d")
a = F("a")
g = G("g")
j = H("j")
c = B("c")

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