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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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