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

class B:
    def __init__(self, txt: str):
        self.q: F = None
        self.y: E = None
        self.p: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.w: B = None
        self.s: F = None
        self.p: F = None
        self.x: B = None
        self.r: E = None
        self.u: F = None
        self.t: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: A = None
        self.o: F = None
        self.w: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: C = None
        self.y: D = None
        self.q: D = None
        self.x: B = None
        self.w: F = None
        self.t: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.q: F = None
        self.y: E = None
        self.p: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.w: B = None
        self.s: F = None
        self.p: F = None
        self.x: B = None
        self.r: E = None
        self.u: F = None
        self.t: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: A = None
        self.o: F = None
        self.w: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: C = None
        self.y: D = None
        self.q: D = None
        self.x: B = None
        self.w: F = None
        self.t: E = None
        self.txt = txt

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

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