class A:
    def __init__(self, txt: str):
        self.y: I = None
        self.s: F = None
        self.z: G = None
        self.q: H = None
        self.v: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.t: G = None
        self.y: G = None
        self.x: D = None
        self.o: G = None
        self.u: D = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.u: C = None
        self.w: F = None
        self.t: B = None
        self.z: A = None
        self.x: I = None
        self.q: A = None
        self.o: C = None
        self.v: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: E = None
        self.q: H = None
        self.u: B = None
        self.y: G = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.t: G = None
        self.y: G = None
        self.x: D = None
        self.o: G = None
        self.u: D = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.u: C = None
        self.w: F = None
        self.t: B = None
        self.z: A = None
        self.x: I = None
        self.q: A = None
        self.o: C = None
        self.v: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: E = None
        self.q: H = None
        self.u: B = None
        self.y: G = None
        self.txt = txt

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

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