class A:
    def __init__(self, txt: str):
        self.x: H = None
        self.q: G = None
        self.z: J = None
        self.s: G = None
        self.t: H = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.p: I = None
        self.q: B = None
        self.v: D = None
        self.r: C = None
        self.t: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: J = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: B = None
        self.q: C = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.t: H = None
        self.o: D = None
        self.u: C = None
        self.q: G = None
        self.r: G = None
        self.p: F = None
        self.y: B = None
        self.w: I = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.p: I = None
        self.q: B = None
        self.v: D = None
        self.r: C = None
        self.t: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: J = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: B = None
        self.q: C = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.t: H = None
        self.o: D = None
        self.u: C = None
        self.q: G = None
        self.r: G = None
        self.p: F = None
        self.y: B = None
        self.w: I = None
        self.txt = txt

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

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