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

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

class C:
    def __init__(self, txt: str):
        self.w: D = None
        self.p: B = None
        self.x: A = None
        self.v: H = None
        self.u: F = None
        self.s: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: H = None
        self.r: H = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.r: B = None
        self.o: D = None
        self.z: D = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.w: D = None
        self.p: B = None
        self.x: A = None
        self.v: H = None
        self.u: F = None
        self.s: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: H = None
        self.r: H = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.r: B = None
        self.o: D = None
        self.z: D = None
        self.txt = txt

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

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