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

class B:
    def __init__(self, txt: str):
        self.p: E = None
        self.z: C = None
        self.w: A = None
        self.v: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: D = None
        self.x: G = None
        self.t: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: E = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.v: E = None
        self.s: C = None
        self.txt = txt

m = A("m")
h = B("h")
e = C("e")
d = D("d")
a = E("a")
j = F("j")
c = G("c")
b = H("b")
l = E("l")
k = F("k")

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

class B:
    def __init__(self, txt: str):
        self.p: E = None
        self.z: C = None
        self.w: A = None
        self.v: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: D = None
        self.x: G = None
        self.t: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: E = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.v: E = None
        self.s: C = None
        self.txt = txt

m = A("m")
h = B("h")
e = C("e")
d = D("d")
a = E("a")
j = F("j")
c = G("c")
b = H("b")
l = E("l")
k = F("k")

m.q = j
m.s = e
m.y = e
m.x = b
m.o = h
h.p = a
h.z = e
h.w = m
h.v = k
e.o = d
e.x = c
e.t = j
d.x = l
a.s = k
a.u = b
a.p = b
a.x = m
a.t = l
a.y = l
j.v = m
j.x = m
j.o = e
j.u = h
j.t = b
j.w = b
j.s = c
j.p = k
c.v = b
c.s = d
b.v = a
b.s = e
l.s = k
l.u = b
l.p = b
l.x = m
l.t = a
l.y = a
k.v = m
k.x = m
k.o = e
k.u = h
k.t = b
k.w = b
k.s = c
k.p = j
assert k.o.x.s.x.y.u.s.t.txt == "j"