class A:
    def __init__(self, txt: str):
        self.v: E = None
        self.s: E = None
        self.r: F = None
        self.t: C = None
        self.z: F = None
        self.p: F = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.u: A = None
        self.q: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: E = None
        self.w: G = None
        self.txt = txt

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

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

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

b = A("b")
h = B("h")
g = C("g")
n = D("n")
i = E("i")
l = F("l")
c = G("c")
m = F("m")
d = B("d")
a = G("a")

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

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

class C:
    def __init__(self, txt: str):
        self.u: A = None
        self.q: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: E = None
        self.w: G = None
        self.txt = txt

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

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

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

b = A("b")
h = B("h")
g = C("g")
n = D("n")
i = E("i")
l = F("l")
c = G("c")
m = F("m")
d = B("d")
a = G("a")

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