class A:
    def __init__(self, txt: str):
        self.v: H = None
        self.z: D = None
        self.y: E = None
        self.q: A = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.p: F = None
        self.z: F = None
        self.t: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: E = None
        self.x: F = None
        self.v: F = None
        self.o: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: E = None
        self.r: H = None
        self.s: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: D = None
        self.w: F = None
        self.r: E = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.p: F = None
        self.z: F = None
        self.t: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: E = None
        self.x: F = None
        self.v: F = None
        self.o: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: E = None
        self.r: H = None
        self.s: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: D = None
        self.w: F = None
        self.r: E = None
        self.txt = txt

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

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