#include<stdio.h>
void main()
{
    char s;
    int r;
    char t;
    scanf("%c %d %c",&s,&r,&t);
    if(s>=65 && s<=90 && r>=1 && r<=9 &&(t=='A' || t=='B' || t=='C')){
        printf("Section: %c\nRoll Number: %d\nBlood Group: %c",s,r,t);
    }
    else{
        printf("Invalid input")
    }
}