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

class B:
    def __init__(self, txt: str):
        self.v: F = None
        self.x: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.y: E = None
        self.u: B = None
        self.t: F = None
        self.s: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: A = None
        self.p: C = None
        self.x: C = None
        self.r: C = None
        self.t: B = None
        self.txt = txt

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

g = A("g")
j = B("j")
d = C("d")
b = D("b")
a = E("a")
c = F("c")
e = A("e")
k = C("k")
i = F("i")
l = A("l")

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

class B:
    def __init__(self, txt: str):
        self.v: F = None
        self.x: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.y: E = None
        self.u: B = None
        self.t: F = None
        self.s: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: A = None
        self.p: C = None
        self.x: C = None
        self.r: C = None
        self.t: B = None
        self.txt = txt

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

g = A("g")
j = B("j")
d = C("d")
b = D("b")
a = E("a")
c = F("c")
e = A("e")
k = C("k")
i = F("i")
l = A("l")

g.s = c
g.y = a
g.x = k
g.q = j
j.v = c
j.x = k
d.w = l
d.x = l
b.y = a
b.u = j
b.t = c
b.s = l
a.q = l
a.p = k
a.x = d
a.r = d
a.t = j
c.u = j
c.r = k
c.y = b
c.w = b
e.s = c
e.y = a
e.x = k
e.q = j
k.w = l
k.x = g
i.u = j
i.r = d
i.y = b
i.w = b
l.s = c
l.y = a
l.x = k
l.q = j
assert g.y.q.y.q.y.txt == "a"