class A:
    def __init__(self, txt: str):
        self.u: F = None
        self.w: D = None
        self.x: E = None
        self.r: G = None
        self.q: G = None
        self.y: F = None
        self.p: D = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.z: E = None
        self.x: D = None
        self.q: E = None
        self.p: E = None
        self.u: F = None
        self.w: A = None
        self.t: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: C = None
        self.t: B = None
        self.w: E = None
        self.z: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: D = None
        self.z: G = None
        self.o: A = None
        self.y: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: B = None
        self.txt = txt

h = A("h")
f = B("f")
c = C("c")
j = D("j")
k = E("k")
a = F("a")
n = G("n")
g = D("g")
d = A("d")
m = A("m")

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

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

class C:
    def __init__(self, txt: str):
        self.z: E = None
        self.x: D = None
        self.q: E = None
        self.p: E = None
        self.u: F = None
        self.w: A = None
        self.t: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: C = None
        self.t: B = None
        self.w: E = None
        self.z: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: D = None
        self.z: G = None
        self.o: A = None
        self.y: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: B = None
        self.txt = txt

h = A("h")
f = B("f")
c = C("c")
j = D("j")
k = E("k")
a = F("a")
n = G("n")
g = D("g")
d = A("d")
m = A("m")

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