class A:
    def __init__(self, txt: str):
        self.u: B = None
        self.y: B = None
        self.q: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.z: B = None
        self.u: I = None
        self.y: F = None
        self.w: B = None
        self.p: B = None
        self.v: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: J = None
        self.q: B = None
        self.r: G = None
        self.z: C = None
        self.x: H = None
        self.w: I = None
        self.y: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: J = None
        self.r: G = None
        self.w: B = None
        self.t: B = None
        self.x: I = None
        self.z: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: B = None
        self.o: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: B = None
        self.u: H = None
        self.s: D = None
        self.o: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: E = None
        self.y: B = None
        self.s: G = None
        self.z: F = None
        self.q: D = None
        self.o: F = None
        self.txt = txt

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

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

h = A("h")
k = B("k")
g = C("g")
l = D("l")
c = E("c")
e = F("e")
m = G("m")
n = H("n")
a = I("a")
f = J("f")

h.u = k
h.y = k
h.q = m
k.t = c
k.z = h
k.s = e
g.z = k
g.w = k
g.p = k
g.u = a
g.y = e
g.v = m
l.s = f
l.q = k
l.r = m
l.z = g
l.x = n
l.w = a
l.y = a
c.s = f
c.r = m
c.z = m
c.w = k
c.t = k
c.x = a
e.p = k
e.o = f
m.w = k
m.u = n
m.s = l
m.o = c
n.v = c
n.y = k
n.s = m
n.z = e
n.o = e
n.q = l
a.p = g
a.v = h
a.x = h
a.o = h
a.u = m
a.s = l
a.q = k
f.x = k
f.s = k
f.u = a
f.o = g
f.t = c
f.q = n
f.w = h
f.r = e
f.p = e
f.v = l
assert a.p.u.p.y.o.p.o.u.txt == "
class A:
    def __init__(self, txt: str):
        self.u: B = None
        self.y: B = None
        self.q: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.z: B = None
        self.u: I = None
        self.y: F = None
        self.w: B = None
        self.p: B = None
        self.v: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: J = None
        self.q: B = None
        self.r: G = None
        self.z: C = None
        self.x: H = None
        self.w: I = None
        self.y: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: J = None
        self.r: G = None
        self.w: B = None
        self.t: B = None
        self.x: I = None
        self.z: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: B = None
        self.o: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: B = None
        self.u: H = None
        self.s: D = None
        self.o: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: E = None
        self.y: B = None
        self.s: G = None
        self.z: F = None
        self.q: D = None
        self.o: F = None
        self.txt = txt

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

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

h = A("h")
k = B("k")
g = C("g")
l = D("l")
c = E("c")
e = F("e")
m = G("m")
n = H("n")
a = I("a")
f = J("f")

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