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

class B:
    def __init__(self, txt: str):
        self.y: C = None
        self.o: A = None
        self.q: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.w: H = None
        self.v: A = None
        self.y: F = None
        self.o: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: G = None
        self.y: G = None
        self.t: G = None
        self.q: B = None
        self.x: C = None
        self.v: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: H = None
        self.t: A = None
        self.y: D = None
        self.v: A = None
        self.w: E = None
        self.x: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: A = None
        self.v: A = None
        self.x: D = None
        self.u: D = None
        self.z: A = None
        self.q: A = None
        self.s: A = None
        self.y: B = None
        self.txt = txt

j = A("j")
d = B("d")
l = C("l")
g = D("g")
k = E("k")
e = F("e")
h = G("h")
n = H("n")
f = B("f")

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

class B:
    def __init__(self, txt: str):
        self.y: C = None
        self.o: A = None
        self.q: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.w: H = None
        self.v: A = None
        self.y: F = None
        self.o: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: G = None
        self.y: G = None
        self.t: G = None
        self.q: B = None
        self.x: C = None
        self.v: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: H = None
        self.t: A = None
        self.y: D = None
        self.v: A = None
        self.w: E = None
        self.x: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: A = None
        self.v: A = None
        self.x: D = None
        self.u: D = None
        self.z: A = None
        self.q: A = None
        self.s: A = None
        self.y: B = None
        self.txt = txt

j = A("j")
d = B("d")
l = C("l")
g = D("g")
k = E("k")
e = F("e")
h = G("h")
n = H("n")
f = B("f")

j.s = g
j.u = l
j.t = l
d.y = l
d.o = j
d.q = h
l.z = g
l.v = g
l.u = g
l.t = e
l.s = d
l.x = d
g.w = n
g.v = j
g.y = e
g.o = h
k.r = h
k.y = h
k.t = h
k.v = h
k.q = d
k.x = l
e.w = l
h.z = n
h.t = j
h.v = j
h.y = g
h.w = k
h.x = k
n.w = j
n.v = j
n.z = j
n.q = j
n.s = j
n.x = g
n.u = g
n.y = d
f.y = l
f.o = j
f.q = h
assert e.w.s.o.u.txt == "l"