class A:
    def __init__(self, txt: str):
        self.s: A = None
        self.u: F = None
        self.o: D = None
        self.y: G = None
        self.p: G = None
        self.v: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: A = None
        self.v: C = None
        self.x: A = None
        self.p: G = None
        self.u: A = None
        self.s: D = None
        self.q: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: E = None
        self.v: A = None
        self.q: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: B = None
        self.t: B = None
        self.q: F = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.o: A = None
        self.v: C = None
        self.x: A = None
        self.p: G = None
        self.u: A = None
        self.s: D = None
        self.q: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: E = None
        self.v: A = None
        self.q: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: B = None
        self.t: B = None
        self.q: F = None
        self.txt = txt

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

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

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

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