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

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

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

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

class E:
    def __init__(self, txt: str):
        self.v: F = None
        self.x: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: H = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.z: A = None
        self.txt = txt

e = A("e")
g = B("g")
l = C("l")
h = D("h")
a = E("a")
f = F("f")
d = G("d")
n = H("n")
j = I("j")

e.y = l
e.s = n
e.w = n
e.p = a
e.v = d
g.t = j
g.y = h
l.p = j
l.o = j
l.r = d
l.u = a
l.w = a
l.t = h
l.v = h
l.s = f
l.y = e
h.r = n
h.t = a
h.p = a
h.s = j
h.u = l
h.v = l
h.x = g
h.o = e
a.v = f
a.x = d
f.u = n
d.s = a
d.w = a
d.o = f
d.x = h
d.p = h
d.u = e
d.z = n
d.v = n
n.z = e
n.s = f
n.t = j
n.u = g
n.x = a
j.z = e
assert f.u.z.y.txt == "
class A:
    def __init__(self, txt: str):
        self.y: C = None
        self.s: H = None
        self.p: E = None
        self.v: G = None
        self.w: H = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.v: F = None
        self.x: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: H = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.z: A = None
        self.txt = txt

e = A("e")
g = B("g")
l = C("l")
h = D("h")
a = E("a")
f = F("f")
d = G("d")
n = H("n")
j = I("j")

e.y = l
e.s = n
e.w = n
e.p = a
e.v = d
g.t = j
g.y = h
l.p = j
l.o = j
l.r = d
l.u = a
l.w = a
l.t = h
l.v = h
l.s = f
l.y = e
h.r = n
h.t = a
h.p = a
h.s = j
h.u = l
h.v = l
h.x = g
h.o = e
a.v = f
a.x = d
f.u = n
d.s = a
d.w = a
d.o = f
d.x = h
d.p = h
d.u = e
d.z = n
d.v = n
n.z = e
n.s = f
n.t = j
n.u = g
n.x = a
j.z = e
assert f.u.z.y.txt == "l"