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

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

class C:
    def __init__(self, txt: str):
        self.r: D = None
        self.q: D = None
        self.w: E = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.r: J = None
        self.u: J = None
        self.z: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: J = None
        self.s: I = None
        self.v: A = None
        self.p: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: J = None
        self.o: J = None
        self.t: J = None
        self.u: J = None
        self.r: D = None
        self.z: A = None
        self.y: E = None
        self.v: B = None
        self.x: A = None
        self.w: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: F = None
        self.r: J = None
        self.y: J = None
        self.s: D = None
        self.q: H = None
        self.o: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: D = None
        self.q: F = None
        self.z: G = None
        self.w: A = None
        self.s: C = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.r: D = None
        self.q: D = None
        self.w: E = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.r: J = None
        self.u: J = None
        self.z: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: J = None
        self.s: I = None
        self.v: A = None
        self.p: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: J = None
        self.o: J = None
        self.t: J = None
        self.u: J = None
        self.r: D = None
        self.z: A = None
        self.y: E = None
        self.v: B = None
        self.x: A = None
        self.w: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: F = None
        self.r: J = None
        self.y: J = None
        self.s: D = None
        self.q: H = None
        self.o: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: D = None
        self.q: F = None
        self.z: G = None
        self.w: A = None
        self.s: C = None
        self.txt = txt

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

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