class A:
    def __init__(self, txt: str):
        self.t: F = None
        self.s: G = None
        self.w: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: G = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.o: B = None
        self.w: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: H = None
        self.x: A = None
        self.r: D = None
        self.u: H = None
        self.y: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: H = None
        self.u: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: G = None
        self.u: F = None
        self.q: H = None
        self.o: B = None
        self.x: D = None
        self.z: G = None
        self.r: G = None
        self.y: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.x: G = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.o: B = None
        self.w: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: H = None
        self.x: A = None
        self.r: D = None
        self.u: H = None
        self.y: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: H = None
        self.u: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: G = None
        self.u: F = None
        self.q: H = None
        self.o: B = None
        self.x: D = None
        self.z: G = None
        self.r: G = None
        self.y: G = None
        self.txt = txt

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

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