class A:
    def __init__(self, txt: str):
        self.w: F = None
        self.s: F = None
        self.u: B = None
        self.o: B = None
        self.y: G = None
        self.x: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: F = None
        self.o: G = None
        self.p: E = None
        self.x: G = None
        self.u: E = None
        self.r: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: E = None
        self.p: H = None
        self.y: D = None
        self.x: D = None
        self.u: F = None
        self.s: F = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.s: B = None
        self.u: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.w: F = None
        self.o: G = None
        self.p: E = None
        self.x: G = None
        self.u: E = None
        self.r: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: E = None
        self.p: H = None
        self.y: D = None
        self.x: D = None
        self.u: F = None
        self.s: F = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.s: B = None
        self.u: D = None
        self.txt = txt

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

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