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

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

class C:
    def __init__(self, txt: str):
        self.x: F = None
        self.s: D = None
        self.o: B = None
        self.u: G = None
        self.q: A = None
        self.r: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: F = None
        self.v: A = None
        self.t: A = None
        self.y: F = None
        self.r: B = None
        self.o: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: F = None
        self.p: C = None
        self.y: G = None
        self.v: G = None
        self.txt = txt

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

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

k = A("k")
j = B("j")
a = C("a")
m = D("m")
d = E("d")
b = F("b")
e = G("e")

k.t = b
k.r = b
k.z = e
k.s = a
k.w = j
k.p = d
k.x = m
j.t = k
a.x = b
a.s = m
a.r = m
a.o = j
a.u = e
a.q = k
m.q = b
m.y = b
m.v = k
m.t = k
m.o = k
m.r = j
d.w = b
d.p = a
d.y = e
d.v = e
b.o = k
b.w = k
b.v = d
e.u = d
e.z = d
e.s = d
e.w = m
e.y = k
e.v = j
assert e.z.v.y.x.r.txt == "
class A:
    def __init__(self, txt: str):
        self.t: F = None
        self.z: G = None
        self.s: C = None
        self.w: B = None
        self.p: E = None
        self.r: F = None
        self.x: D = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.x: F = None
        self.s: D = None
        self.o: B = None
        self.u: G = None
        self.q: A = None
        self.r: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: F = None
        self.v: A = None
        self.t: A = None
        self.y: F = None
        self.r: B = None
        self.o: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: F = None
        self.p: C = None
        self.y: G = None
        self.v: G = None
        self.txt = txt

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

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

k = A("k")
j = B("j")
a = C("a")
m = D("m")
d = E("d")
b = F("b")
e = G("e")

k.t = b
k.r = b
k.z = e
k.s = a
k.w = j
k.p = d
k.x = m
j.t = k
a.x = b
a.s = m
a.r = m
a.o = j
a.u = e
a.q = k
m.q = b
m.y = b
m.v = k
m.t = k
m.o = k
m.r = j
d.w = b
d.p = a
d.y = e
d.v = e
b.o = k
b.w = k
b.v = d
e.u = d
e.z = d
e.s = d
e.w = m
e.y = k
e.v = j
assert e.z.v.y.x.r.txt == "j"