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

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

class C:
    def __init__(self, txt: str):
        self.z: E = None
        self.y: A = None
        self.u: B = None
        self.s: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: C = None
        self.v: F = None
        self.t: C = None
        self.y: C = None
        self.u: C = None
        self.txt = txt

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

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.z: E = None
        self.y: A = None
        self.u: B = None
        self.s: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: C = None
        self.v: F = None
        self.t: C = None
        self.y: C = None
        self.u: C = None
        self.txt = txt

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

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

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

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

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