class A:
    def __init__(self, txt: str):
        self.t: E = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.r: B = None
        self.o: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: D = None
        self.t: D = None
        self.p: D = None
        self.z: B = None
        self.o: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: B = None
        self.u: C = None
        self.r: E = None
        self.x: E = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.r: B = None
        self.o: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: D = None
        self.t: D = None
        self.p: D = None
        self.z: B = None
        self.o: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: B = None
        self.u: C = None
        self.r: E = None
        self.x: E = None
        self.txt = txt

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

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