#!/usr/bin/env python
#  -*-coding:utf-8 -*-

# name = input('请输入名字：')
# age = input('请输入年龄：')
# job = input('请输入工作：')
# hobbie = input('请输入爱好：')
# msg = ''' ---------------info of %%s--------------
# Name : %s
# Age : %s
# Job : %s
# Hobbie : %s
# -----------------end--------------------
# '''% (name,age,job,hobbie)
# print(msg)

# s = 'alexWUsir'
#capitalize 首字母大写，其余小写
# s1 = s.capitalize()
# print(s1)

# s2 = s.swapcase()
#swapcase字母大小写装换
# print(s2)

#
# s = 'alex wusir*taibai2ritian'
#
# s3 = s.title()
# #title
# print(s3)

#

# code = 'AwEqr'
#
# username = input("应户名：")
# your_code = input('验证码：')
# if username == 'alex' and your_code.upper() == code.upper():
#     print('三生三世')

# s = 'alexWusir'
# #startswish endswith
# s6 = s.startswith('a')
# s7 = s.startswith('alex')
#
# s8 = s.startswith('WS', 4,)
#
# print(s6)
#
# print(s7)
#
# print(s8)

s = '     alexWUsir\t'
# strip 去除字符串前后的空格、换行符、制表符。
#去除元素可自定制
# s7 = s.strip()
# print(s7)

# username = input('>>>').strip()
# password = input('>>>').strip()
# if username == 'aaaa' and password =='123':
#     print('success')

# ss = 'abclaonanhaiq'
# ssl = ss.strip('abqc')
# print(ssl)

# s = 'a 点点滴滴a 大大大 a ddd  a'
#
# #s8 = s.replace('a','R')
# s8 = s.replace('a','R',1)
# print(s8)

# s = 'a,b,c,d'
# ll = s.split()
# print(ll)

s = 'Cat and Dog'
print(s.find('Dog'),end = '')


