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

class B:
    def __init__(self, txt: str):
        self.u: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: E = None
        self.w: H = None
        self.v: F = None
        self.z: H = None
        self.r: H = None
        self.s: D = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.x: A = None
        self.r: D = None
        self.z: A = None
        self.v: A = None
        self.t: G = None
        self.y: G = None
        self.s: D = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.u: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: E = None
        self.w: H = None
        self.v: F = None
        self.z: H = None
        self.r: H = None
        self.s: D = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.x: A = None
        self.r: D = None
        self.z: A = None
        self.v: A = None
        self.t: G = None
        self.y: G = None
        self.s: D = None
        self.txt = txt

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

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

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

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