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

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

class C:
    def __init__(self, txt: str):
        self.x: D = None
        self.t: G = None
        self.s: F = None
        self.o: A = None
        self.p: I = None
        self.y: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: B = None
        self.p: H = None
        self.o: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: F = None
        self.x: D = None
        self.u: I = None
        self.w: H = None
        self.y: D = None
        self.z: G = None
        self.r: D = None
        self.v: G = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.w: C = None
        self.t: G = None
        self.x: A = None
        self.p: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: D = None
        self.x: H = None
        self.y: G = None
        self.u: C = None
        self.o: G = None
        self.s: G = None
        self.p: F = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.x: D = None
        self.t: G = None
        self.s: F = None
        self.o: A = None
        self.p: I = None
        self.y: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: B = None
        self.p: H = None
        self.o: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: F = None
        self.x: D = None
        self.u: I = None
        self.w: H = None
        self.y: D = None
        self.z: G = None
        self.r: D = None
        self.v: G = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.w: C = None
        self.t: G = None
        self.x: A = None
        self.p: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: D = None
        self.x: H = None
        self.y: G = None
        self.u: C = None
        self.o: G = None
        self.s: G = None
        self.p: F = None
        self.txt = txt

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

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