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

class B:
    def __init__(self, txt: str):
        self.r: C = None
        self.x: F = None
        self.w: A = None
        self.t: C = None
        self.v: E = None
        self.q: F = None
        self.o: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: D = None
        self.v: H = None
        self.t: H = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.y: F = None
        self.w: B = None
        self.o: D = None
        self.q: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.r: C = None
        self.x: F = None
        self.w: A = None
        self.t: C = None
        self.v: E = None
        self.q: F = None
        self.o: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: D = None
        self.v: H = None
        self.t: H = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.y: F = None
        self.w: B = None
        self.o: D = None
        self.q: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: G = None
        self.txt = txt

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

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