class A:
    def __init__(self, txt: str):
        self.p: G = None
        self.v: D = None
        self.o: B = None
        self.w: E = None
        self.r: G = None
        self.u: I = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.p: F = None
        self.s: I = None
        self.q: G = None
        self.w: G = None
        self.z: A = None
        self.t: E = None
        self.x: A = None
        self.u: I = None
        self.v: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: G = None
        self.v: B = None
        self.q: E = None
        self.s: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.v: D = None
        self.o: I = None
        self.p: I = None
        self.z: E = None
        self.u: D = None
        self.y: B = None
        self.s: C = None
        self.txt = txt

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

d = A("d")
k = B("k")
j = C("j")
b = D("b")
h = E("h")
e = F("e")
l = G("l")
c = H("c")
i = I("i")
a = A("a")

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

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

class C:
    def __init__(self, txt: str):
        self.p: F = None
        self.s: I = None
        self.q: G = None
        self.w: G = None
        self.z: A = None
        self.t: E = None
        self.x: A = None
        self.u: I = None
        self.v: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: G = None
        self.v: B = None
        self.q: E = None
        self.s: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.v: D = None
        self.o: I = None
        self.p: I = None
        self.z: E = None
        self.u: D = None
        self.y: B = None
        self.s: C = None
        self.txt = txt

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

d = A("d")
k = B("k")
j = C("j")
b = D("b")
h = E("h")
e = F("e")
l = G("l")
c = H("c")
i = I("i")
a = A("a")

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