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

class B:
    def __init__(self, txt: str):
        self.w: E = None
        self.v: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: A = None
        self.u: G = None
        self.p: A = None
        self.v: E = None
        self.q: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: A = None
        self.r: F = None
        self.v: E = None
        self.o: G = None
        self.p: A = None
        self.x: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: C = None
        self.p: F = None
        self.t: F = None
        self.y: B = None
        self.w: A = None
        self.o: H = None
        self.s: B = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.w: I = None
        self.z: G = None
        self.p: C = None
        self.v: A = None
        self.s: G = None
        self.o: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.w: E = None
        self.v: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: A = None
        self.u: G = None
        self.p: A = None
        self.v: E = None
        self.q: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: A = None
        self.r: F = None
        self.v: E = None
        self.o: G = None
        self.p: A = None
        self.x: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: C = None
        self.p: F = None
        self.t: F = None
        self.y: B = None
        self.w: A = None
        self.o: H = None
        self.s: B = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.w: I = None
        self.z: G = None
        self.p: C = None
        self.v: A = None
        self.s: G = None
        self.o: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: B = None
        self.txt = txt

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

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