class A:
    def __init__(self, txt: str):
        self.x: C = None
        self.p: D = None
        self.u: G = None
        self.r: G = None
        self.t: C = None
        self.v: F = None
        self.q: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.t: D = None
        self.u: G = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.p: E = None
        self.r: F = None
        self.u: E = None
        self.z: F = None
        self.x: A = None
        self.q: C = None
        self.o: E = None
        self.txt = txt

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

i.x = a
i.t = a
i.p = d
i.u = j
i.r = j
i.q = j
i.v = f
e.u = j
a.t = d
a.u = j
d.q = e
h.p = j
h.v = f
h.u = i
f.w = j
f.x = a
f.q = a
j.p = h
j.u = h
j.o = h
j.r = f
j.z = f
j.x = i
j.q = a
l.x = a
l.t = a
l.p = d
l.u = j
l.r = j
l.q = j
l.v = f
assert l.t.t.q.u.q.u.q.txt == "
class A:
    def __init__(self, txt: str):
        self.x: C = None
        self.p: D = None
        self.u: G = None
        self.r: G = None
        self.t: C = None
        self.v: F = None
        self.q: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.t: D = None
        self.u: G = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.p: E = None
        self.r: F = None
        self.u: E = None
        self.z: F = None
        self.x: A = None
        self.q: C = None
        self.o: E = None
        self.txt = txt

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

i.x = a
i.t = a
i.p = d
i.u = j
i.r = j
i.q = j
i.v = f
e.u = j
a.t = d
a.u = j
d.q = e
h.p = j
h.v = f
h.u = i
f.w = j
f.x = a
f.q = a
j.p = h
j.u = h
j.o = h
j.r = f
j.z = f
j.x = i
j.q = a
l.x = a
l.t = a
l.p = d
l.u = j
l.r = j
l.q = j
l.v = f
assert l.t.t.q.u.q.u.q.txt == "a"