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

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

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

class D:
    def __init__(self, txt: str):
        self.y: G = None
        self.u: C = None
        self.w: B = None
        self.z: F = None
        self.o: B = None
        self.s: F = None
        self.t: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: F = None
        self.z: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: B = None
        self.v: C = None
        self.z: C = None
        self.p: E = None
        self.r: E = None
        self.w: B = None
        self.q: C = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.y: G = None
        self.u: C = None
        self.w: B = None
        self.z: F = None
        self.o: B = None
        self.s: F = None
        self.t: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: F = None
        self.z: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: B = None
        self.v: C = None
        self.z: C = None
        self.p: E = None
        self.r: E = None
        self.w: B = None
        self.q: C = None
        self.txt = txt

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

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

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