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

class B:
    def __init__(self, txt: str):
        self.y: B = None
        self.t: A = None
        self.u: E = None
        self.q: B = None
        self.x: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: E = None
        self.t: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: G = None
        self.w: C = None
        self.t: D = None
        self.p: C = None
        self.r: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: G = None
        self.r: A = None
        self.u: D = None
        self.y: D = None
        self.t: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: D = None
        self.o: A = None
        self.w: E = None
        self.p: E = None
        self.s: A = None
        self.q: A = None
        self.r: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: E = None
        self.w: E = None
        self.y: E = None
        self.q: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.y: B = None
        self.t: A = None
        self.u: E = None
        self.q: B = None
        self.x: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: E = None
        self.t: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: G = None
        self.w: C = None
        self.t: D = None
        self.p: C = None
        self.r: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: G = None
        self.r: A = None
        self.u: D = None
        self.y: D = None
        self.t: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: D = None
        self.o: A = None
        self.w: E = None
        self.p: E = None
        self.s: A = None
        self.q: A = None
        self.r: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: E = None
        self.w: E = None
        self.y: E = None
        self.q: C = None
        self.txt = txt

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

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