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

class B:
    def __init__(self, txt: str):
        self.y: C = None
        self.v: E = None
        self.w: I = None
        self.r: D = None
        self.o: I = None
        self.x: D = None
        self.q: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: G = None
        self.z: D = None
        self.y: D = None
        self.o: A = None
        self.s: G = None
        self.t: H = None
        self.v: A = None
        self.q: A = None
        self.u: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: A = None
        self.r: C = None
        self.x: E = None
        self.v: I = None
        self.z: A = None
        self.y: C = None
        self.t: A = None
        self.q: I = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: E = None
        self.p: D = None
        self.z: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: D = None
        self.o: E = None
        self.q: E = None
        self.x: A = None
        self.z: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: G = None
        self.t: H = None
        self.q: F = None
        self.r: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.y: C = None
        self.v: E = None
        self.w: I = None
        self.r: D = None
        self.o: I = None
        self.x: D = None
        self.q: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: G = None
        self.z: D = None
        self.y: D = None
        self.o: A = None
        self.s: G = None
        self.t: H = None
        self.v: A = None
        self.q: A = None
        self.u: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: A = None
        self.r: C = None
        self.x: E = None
        self.v: I = None
        self.z: A = None
        self.y: C = None
        self.t: A = None
        self.q: I = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: E = None
        self.p: D = None
        self.z: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: D = None
        self.o: E = None
        self.q: E = None
        self.x: A = None
        self.z: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: G = None
        self.t: H = None
        self.q: F = None
        self.r: E = None
        self.txt = txt

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

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