class A:
    def __init__(self, txt: str):
        self.q: C = None
        self.v: D = None
        self.z: C = None
        self.x: B = None
        self.t: B = None
        self.u: B = None
        self.w: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.y: D = None
        self.v: F = None
        self.x: D = None
        self.p: F = None
        self.w: A = None
        self.z: G = None
        self.o: G = None
        self.txt = txt

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

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

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.y: D = None
        self.v: F = None
        self.x: D = None
        self.p: F = None
        self.w: A = None
        self.z: G = None
        self.o: G = None
        self.txt = txt

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

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

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

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

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

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