class A:
    def __init__(self, txt: str):
        self.r: H = None
        self.u: D = None
        self.t: D = None
        self.x: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.r: G = None
        self.v: A = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.w: D = None
        self.z: B = None
        self.u: D = None
        self.q: E = None
        self.s: B = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.r: G = None
        self.v: A = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.w: D = None
        self.z: B = None
        self.u: D = None
        self.q: E = None
        self.s: B = None
        self.txt = txt

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

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

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

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