class A:
    def __init__(self, txt: str):
        self.p: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: G = None
        self.r: E = None
        self.u: F = None
        self.z: E = None
        self.x: B = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: A = None
        self.p: E = None
        self.v: A = None
        self.t: A = None
        self.x: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: G = None
        self.x: F = None
        self.z: G = None
        self.s: G = None
        self.u: B = None
        self.t: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: E = None
        self.z: G = None
        self.t: A = None
        self.p: A = None
        self.u: G = None
        self.q: E = None
        self.w: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: B = None
        self.r: E = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.v: G = None
        self.r: E = None
        self.u: F = None
        self.z: E = None
        self.x: B = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: A = None
        self.p: E = None
        self.v: A = None
        self.t: A = None
        self.x: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: G = None
        self.x: F = None
        self.z: G = None
        self.s: G = None
        self.u: B = None
        self.t: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: E = None
        self.z: G = None
        self.t: A = None
        self.p: A = None
        self.u: G = None
        self.q: E = None
        self.w: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: B = None
        self.r: E = None
        self.txt = txt

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

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

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