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

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

class C:
    def __init__(self, txt: str):
        self.q: H = None
        self.u: H = None
        self.t: A = None
        self.s: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: G = None
        self.y: F = None
        self.z: F = None
        self.q: C = None
        self.x: D = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: F = None
        self.txt = txt

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

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.q: H = None
        self.u: H = None
        self.t: A = None
        self.s: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: G = None
        self.y: F = None
        self.z: F = None
        self.q: C = None
        self.x: D = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: F = None
        self.txt = txt

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

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

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

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

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