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

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

class C:
    def __init__(self, txt: str):
        self.p: D = None
        self.q: F = None
        self.z: F = None
        self.r: F = None
        self.o: E = None
        self.u: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: A = None
        self.o: B = None
        self.u: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.t: E = None
        self.p: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: F = None
        self.txt = txt

c = A("c")
l = B("l")
m = C("m")
j = D("j")
n = E("n")
a = F("a")
e = G("e")
i = A("i")

c.z = e
c.y = n
c.x = m
c.w = m
c.o = l
l.s = m
m.p = j
m.q = a
m.z = a
m.r = a
m.o = n
m.u = n
j.y = i
j.o = l
j.u = c
n.y = e
n.p = j
n.u = m
n.q = a
n.r = l
a.t = n
a.p = j
e.r = a
i.z = e
i.y = n
i.x = m
i.w = m
i.o = l
assert c.o.s.u.r.s.txt == "
class A:
    def __init__(self, txt: str):
        self.z: G = None
        self.y: E = None
        self.x: C = None
        self.o: B = None
        self.w: C = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.p: D = None
        self.q: F = None
        self.z: F = None
        self.r: F = None
        self.o: E = None
        self.u: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: A = None
        self.o: B = None
        self.u: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.t: E = None
        self.p: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: F = None
        self.txt = txt

c = A("c")
l = B("l")
m = C("m")
j = D("j")
n = E("n")
a = F("a")
e = G("e")
i = A("i")

c.z = e
c.y = n
c.x = m
c.w = m
c.o = l
l.s = m
m.p = j
m.q = a
m.z = a
m.r = a
m.o = n
m.u = n
j.y = i
j.o = l
j.u = c
n.y = e
n.p = j
n.u = m
n.q = a
n.r = l
a.t = n
a.p = j
e.r = a
i.z = e
i.y = n
i.x = m
i.w = m
i.o = l
assert c.o.s.u.r.s.txt == "m"