package zzy;
import static java.lang.System.*;
import java.util.*;
/**
*
* @author Zhu Zhengyan
*/
public class meiju
{
public static void main(String[] args)
{
Scanner in = new Scanner(System.in);
String input = in.nextLine().toUpperCase();//变为大写
Size size = Enum.valueOf(Size.class,input); //将size设置为Size.SMALL等,返回枚举常量
String a = Size.SMALL.toString(); //Size.SMALL.toString()返回字符串"SMALL"
out.println(size);
out.println(size.getAbbreviation());
Size[] values = Size.values(); //返回包含元素SMALL,MEDIUM等的数组
for (Size s:values)
out.println(s);
int x = Size.LARGE.ordinal(); //返回LARGE的位置,从0开始
out.println(x);
}
public enum Size
{
SMALL("S"),MEDIUM("M"),LARGE("L"),EXTRA_LARGE("XL");
private String abbreviation;
private Size(String abbreviation)
{
this.abbreviation = abbreviation;
}
public String getAbbreviation()
{
return abbreviation;
}
}
}