class A:
    def __init__(self, txt: str):
        self.o: I = None
        self.u: D = None
        self.t: B = None
        self.q: B = None
        self.w: I = None
        self.v: F = None
        self.r: D = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.w: B = None
        self.v: I = None
        self.y: E = None
        self.x: A = None
        self.z: A = None
        self.r: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: J = None
        self.z: H = None
        self.p: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: A = None
        self.y: G = None
        self.q: B = None
        self.o: J = None
        self.t: H = None
        self.r: F = None
        self.v: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: B = None
        self.q: J = None
        self.y: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: J = None
        self.x: A = None
        self.y: E = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.v: C = None
        self.y: B = None
        self.u: D = None
        self.z: G = None
        self.r: B = None
        self.t: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: I = None
        self.v: A = None
        self.o: G = None
        self.y: G = None
        self.x: E = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.w: B = None
        self.v: I = None
        self.y: E = None
        self.x: A = None
        self.z: A = None
        self.r: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: J = None
        self.z: H = None
        self.p: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: A = None
        self.y: G = None
        self.q: B = None
        self.o: J = None
        self.t: H = None
        self.r: F = None
        self.v: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: B = None
        self.q: J = None
        self.y: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: J = None
        self.x: A = None
        self.y: E = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.v: C = None
        self.y: B = None
        self.u: D = None
        self.z: G = None
        self.r: B = None
        self.t: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: I = None
        self.v: A = None
        self.o: G = None
        self.y: G = None
        self.x: E = None
        self.txt = txt

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

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