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

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

class C:
    def __init__(self, txt: str):
        self.u: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: G = None
        self.w: E = None
        self.x: D = None
        self.u: H = None
        self.t: E = None
        self.p: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: D = None
        self.x: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.v: G = None
        self.o: G = None
        self.u: A = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.u: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: G = None
        self.w: E = None
        self.x: D = None
        self.u: H = None
        self.t: E = None
        self.p: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: D = None
        self.x: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.v: G = None
        self.o: G = None
        self.u: A = None
        self.txt = txt

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

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