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

class B:
    def __init__(self, txt: str):
        self.u: D = None
        self.z: C = None
        self.x: G = None
        self.s: C = None
        self.txt = txt

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

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.u: D = None
        self.z: C = None
        self.x: G = None
        self.s: C = None
        self.txt = txt

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

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

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

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

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

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

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