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

class B:
    def __init__(self, txt: str):
        self.p: F = None
        self.s: G = None
        self.r: G = None
        self.x: G = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.r: B = None
        self.w: A = None
        self.y: C = None
        self.p: C = None
        self.v: H = None
        self.o: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: D = None
        self.p: D = None
        self.w: H = None
        self.x: D = None
        self.t: G = None
        self.r: C = None
        self.v: E = None
        self.q: D = None
        self.txt = txt

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

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

n = A("n")
k = B("k")
j = C("j")
g = D("g")
d = E("d")
c = F("c")
l = G("l")
h = H("h")

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

class B:
    def __init__(self, txt: str):
        self.p: F = None
        self.s: G = None
        self.r: G = None
        self.x: G = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.r: B = None
        self.w: A = None
        self.y: C = None
        self.p: C = None
        self.v: H = None
        self.o: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: D = None
        self.p: D = None
        self.w: H = None
        self.x: D = None
        self.t: G = None
        self.r: C = None
        self.v: E = None
        self.q: D = None
        self.txt = txt

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

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

n = A("n")
k = B("k")
j = C("j")
g = D("g")
d = E("d")
c = F("c")
l = G("l")
h = H("h")

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