class A:
    def __init__(self, txt: str):
        self.z: C = None
        self.y: F = None
        self.u: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: B = None
        self.p: A = None
        self.o: B = None
        self.s: F = None
        self.v: C = None
        self.q: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.s: F = None
        self.z: A = None
        self.o: E = None
        self.x: E = None
        self.t: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: H = None
        self.t: E = None
        self.s: D = None
        self.y: A = None
        self.p: D = None
        self.u: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: A = None
        self.t: F = None
        self.x: A = None
        self.q: E = None
        self.r: F = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.t: B = None
        self.p: A = None
        self.o: B = None
        self.s: F = None
        self.v: C = None
        self.q: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.s: F = None
        self.z: A = None
        self.o: E = None
        self.x: E = None
        self.t: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: H = None
        self.t: E = None
        self.s: D = None
        self.y: A = None
        self.p: D = None
        self.u: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: A = None
        self.t: F = None
        self.x: A = None
        self.q: E = None
        self.r: F = None
        self.txt = txt

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

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

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