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

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

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

class D:
    def __init__(self, txt: str):
        self.q: G = None
        self.t: E = None
        self.w: G = None
        self.z: F = None
        self.r: A = None
        self.o: G = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.u: D = None
        self.s: E = None
        self.p: E = None
        self.o: E = None
        self.v: D = None
        self.r: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: C = None
        self.w: C = None
        self.q: A = None
        self.p: F = None
        self.z: C = None
        self.r: A = None
        self.s: C = None
        self.x: A = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.q: G = None
        self.t: E = None
        self.w: G = None
        self.z: F = None
        self.r: A = None
        self.o: G = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.u: D = None
        self.s: E = None
        self.p: E = None
        self.o: E = None
        self.v: D = None
        self.r: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: C = None
        self.w: C = None
        self.q: A = None
        self.p: F = None
        self.z: C = None
        self.r: A = None
        self.s: C = None
        self.x: A = None
        self.txt = txt

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

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