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

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

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

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

class E:
    def __init__(self, txt: str):
        self.s: C = None
        self.v: B = None
        self.t: F = None
        self.y: G = None
        self.r: H = None
        self.z: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: H = None
        self.s: A = None
        self.w: B = None
        self.v: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.v: C = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.s: C = None
        self.v: B = None
        self.t: F = None
        self.y: G = None
        self.r: H = None
        self.z: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: H = None
        self.s: A = None
        self.w: B = None
        self.v: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.v: C = None
        self.txt = txt

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

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